feat: Cambiar las inclusiones de plantillas a formato await para mejorar la carga de contenido

This commit is contained in:
2025-10-10 00:05:12 -05:00
parent 769acfde61
commit a10ffed4c8
2 changed files with 26 additions and 26 deletions

View File

@@ -21,7 +21,7 @@
</head> </head>
<body class="min-h-screen pixel-grid-bg pt-14" style="background-image: url('/assets/images/background.svg'); background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat;"> <body class="min-h-screen pixel-grid-bg pt-14" style="background-image: url('/assets/images/background.svg'); background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat;">
<%- include('../partials/navbar', { appName }) %> <%- await include('../partials/navbar', { appName }) %>
<div class="relative z-10"> <div class="relative z-10">
<%- body %> <%- body %>

View File

@@ -86,34 +86,34 @@
<div class="flex min-h-screen flex-col"> <div class="flex min-h-screen flex-col">
<div class="mx-auto flex w-full max-w-6xl flex-1 flex-col gap-10 px-6 pb-16 lg:flex-row lg:px-10"> <div class="mx-auto flex w-full max-w-6xl flex-1 flex-col gap-10 px-6 pb-16 lg:flex-row lg:px-10">
<%- include('../partials/toc') %> <%- await include('../partials/toc') %>
<main class="flex-1"> <main class="flex-1">
<div class="mx-auto flex w-full max-w-3xl flex-col gap-8"> <div class="mx-auto flex w-full max-w-3xl flex-col gap-8">
<%- include('../partials/sections/primeros-pasos') %> <%- await include('../partials/sections/primeros-pasos') %>
<%- include('../partials/sections/comandos-basicos') %> <%- await include('../partials/sections/comandos-basicos') %>
<%- include('../partials/sections/sistema-juego') %> <%- await include('../partials/sections/sistema-juego') %>
<%- include('../partials/sections/minijuegos') %> <%- await include('../partials/sections/minijuegos') %>
<%- include('../partials/sections/inventario-equipo') %> <%- await include('../partials/sections/inventario-equipo') %>
<%- include('../partials/sections/economia') %> <%- await include('../partials/sections/economia') %>
<%- include('../partials/sections/tienda') %> <%- await include('../partials/sections/tienda') %>
<%- include('../partials/sections/crafteo') %> <%- await include('../partials/sections/crafteo') %>
<%- include('../partials/sections/logros') %> <%- await include('../partials/sections/logros') %>
<%- include('../partials/sections/misiones') %> <%- await include('../partials/sections/misiones') %>
<%- include('../partials/sections/racha') %> <%- await include('../partials/sections/racha') %>
<%- include('../partials/sections/consumibles') %> <%- await include('../partials/sections/consumibles') %>
<%- include('../partials/sections/cofres') %> <%- await include('../partials/sections/cofres') %>
<%- include('../partials/sections/encantamientos') %> <%- await include('../partials/sections/encantamientos') %>
<%- include('../partials/sections/fundicion') %> <%- await include('../partials/sections/fundicion') %>
<%- include('../partials/sections/ia') %> <%- await include('../partials/sections/ia') %>
<%- include('../partials/sections/recordatorios') %> <%- await include('../partials/sections/recordatorios') %>
<%- include('../partials/sections/alianzas') %> <%- await include('../partials/sections/alianzas') %>
<%- include('../partials/sections/admin') %> <%- await include('../partials/sections/admin') %>
<%- include('../partials/sections/creacion-contenido') %> <%- await include('../partials/sections/creacion-contenido') %>
<%- include('../partials/sections/configuracion') %> <%- await include('../partials/sections/configuracion') %>
<%- include('../partials/sections/estadisticas') %> <%- await include('../partials/sections/estadisticas') %>
<%- include('../partials/sections/tips') %> <%- await include('../partials/sections/tips') %>
<%- include('../partials/sections/faq') %> <%- await include('../partials/sections/faq') %>
</div> </div>
</main> </main>
</div> </div>