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"
);
<a href="https://www.ladys.computer/"><img alt="Lady’s Computer: MY computer over YOUR internets" src="https://www.ladys.computer/media/banner.png" width="468" height="60"/></a>
</header>
<main>
- <header><p>Lady’s Weblog</p></header>
+ <header><p><a href="/">Lady’s Weblog</a></p></header>
<bjørn-content/>
<footer>
<p><strong>Navigation:</strong> <a href="#">Top</a> ∣ <a href="https://blog.ladys.computer">Home</a></p>
:Any-Link{ Color: #3AE6B5 }
:Any-Link code{ Text-Decoration: Underline }
main :Any-Link{ Color: #1F7D63 }
+main>header>p :Any-Link,main>nav>header>h1 :Any-Link{ Color: Inherit }
main>footer :Any-Link{ Color: Inherit; Font-Style: Italic }
main small{ Color: #700020 }