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