compilar: setear main y hacer schema/Article
This commit is contained in:
parent
9e80b34556
commit
f64f9ca907
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Reference in a new issue