fix: corregir errores en la carga de metadatos del proyecto
This commit is contained in:
@@ -85,7 +85,13 @@ const renderTemplate = async (
|
||||
} | Guía Completa`;
|
||||
const html = await ejs.renderFile(
|
||||
layoutFile,
|
||||
{ ...locals, title: locals.title ?? defaultTitle, body },
|
||||
{
|
||||
head: null,
|
||||
scripts: null,
|
||||
...locals,
|
||||
title: locals.title ?? defaultTitle,
|
||||
body,
|
||||
},
|
||||
{ async: true }
|
||||
);
|
||||
res.writeHead(statusCode, {
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
};
|
||||
</script>
|
||||
<link rel="stylesheet" href="/assets/css/styles.css">
|
||||
<% if (head) { %>
|
||||
<% if (typeof head !== 'undefined' && head) { %>
|
||||
<%= head %>
|
||||
<% } %>
|
||||
</head>
|
||||
@@ -92,7 +92,7 @@
|
||||
</footer>
|
||||
|
||||
<script src="/assets/js/main.js" type="module"></script>
|
||||
<% if (scripts) { %>
|
||||
<% if (typeof scripts !== 'undefined' && scripts) { %>
|
||||
<%= scripts %>
|
||||
<% } %>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user