compilar: setear main y hacer schema/Article

This commit is contained in:
Cat /dev/Nulo 2023-03-09 20:40:46 -03:00
parent 9e80b34556
commit f64f9ca907

View file

@ -23,6 +23,7 @@ import {
VirtualElement, VirtualElement,
time, time,
article, article,
main,
} from "@nulo/html.js"; } from "@nulo/html.js";
const execFile = promisify(execFileCallback); const execFile = promisify(execFileCallback);
@ -104,11 +105,11 @@ async function compilePage(config: Config, sourceFileName: string) {
const html = render( const html = render(
...generateHead(title, name), ...generateHead(title, name),
article( article(
{ itemscope: "", itemtype: "https://schema.org/CreativeWork" }, { itemscope: "", itemtype: "https://schema.org/Article" },
...(isIndex ...(isIndex
? [] ? []
: generateHeader(name, sourceFileName, fileConnections.length > 0)), : generateHeader(name, sourceFileName, fileConnections.length > 0)),
raw(contentHtml), main({ itemprop: "articleBody" }, raw(contentHtml)),
...generateConnectionsSection(fileConnections) ...generateConnectionsSection(fileConnections)
) )
); );