From: Lady Date: Sun, 14 May 2023 04:38:05 +0000 (-0700) Subject: Linkify blog title X-Git-Url: https://git.ladys.computer/Blog/commitdiff_plain/293ef54d756e9c6913d828b9ef7e73035b8dd931?ds=sidebyside Linkify blog title --- diff --git a/build.js b/build.js index a3e7630..e3f78dd 100755 --- a/build.js +++ b/build.js @@ -61,6 +61,19 @@ globalThis.bjørnTransformMetadata = (metadata, _type) => { processContent(metadata.summary); }; +globalThis.bjørnTransformFeedHTML = (document, _metadata) => { + const LMN = Lemon.bind({ document }); + const h1 = document.getElementsByTagNameNS( + "http://www.w3.org/1999/xhtml", + "h1", + )[0]; + const link = LMN.a.href("/")``; + for (const child of Array.from(h1.childNodes)) { + link.appendChild(child); + } + h1.appendChild(link); +}; + await import( "https://git.ladys.computer/Beorn/blob_plain/0.2.3:/build.js" ); diff --git a/index#entry.xhtml b/index#entry.xhtml index 1e08aac..567a749 100644 --- a/index#entry.xhtml +++ b/index#entry.xhtml @@ -9,7 +9,7 @@ Lady’s Computer: MY computer over YOUR internets
-

Lady’s Weblog

+

Lady’s Weblog