all repos — homestead @ 44fe92df6d4a8186d128e0cff3a603fefbf1e881

Code for my website

Markup content with more microformats

Alan Pearce
commit

44fe92df6d4a8186d128e0cff3a603fefbf1e881

parent

4cdd583a5ce9428a3e5211213fc44b09fddba618

1 file changed, 6 insertions(+), 1 deletion(-)

changed files
M src/templates.tssrc/templates.ts
@@ -51,7 +51,10 @@ const $ = await layout(
cheerio.load(await Bun.file("templates/index.html").text()), config.title, ); - $("#content").html(marked.parse(file.content)); + + $("body").addClass("h-card"); + $(".title").addClass("p-name").addClass("u-url"); + $("#content").html(await marked.parse(file.content)); const $feed = $(".h-feed"); const $tpl = $(".h-entry").remove();
@@ -74,6 +77,7 @@ cheerio.load(await Bun.file("templates/post.html").text()),
file.title, ); + $(".title").addClass("h-card p-author").attr("rel", "author"); $(".h-entry .dt-published") .attr("datetime", file.date.toISOString()) .text(file.date.toISOString().slice(0, 10));
@@ -102,6 +106,7 @@ tag || config.title,
); const $feed = $(".h-feed"); const $tpl = $(".h-entry").remove(); + $(".title").addClass("p-author h-card").attr("rel", "author"); for (const post of posts) { const $post = $tpl.clone();