From f64f9ca9079914517e7f8de9d10161e2512ab62e Mon Sep 17 00:00:00 2001 From: Nulo Date: Thu, 9 Mar 2023 20:40:46 -0300 Subject: [PATCH] compilar: setear main y hacer schema/Article --- compilar.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compilar.ts b/compilar.ts index 1d81469..edda806 100644 --- a/compilar.ts +++ b/compilar.ts @@ -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) ) );