]> Lady’s Gitweb - Blog/commitdiff
Linkify blog title
authorLady <redacted>
Sun, 14 May 2023 04:38:05 +0000 (21:38 -0700)
committerLady <redacted>
Sun, 14 May 2023 06:15:43 +0000 (23:15 -0700)
build.js
index#entry.xhtml
style.css

index a3e7630d8dca71268c42f3469aee2e983f139ace..e3f78dddeb30559a20ae1be74f333d07601d9b9d 100755 (executable)
--- 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"
 );
index 1e08aacde67e900e55f6eafa2484a9951bc0e263..567a749f97995e9cd77039f3a2b02a6801a76271 100644 (file)
@@ -9,7 +9,7 @@
                <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>
index 23beacdb8adb119df04801e0f7ff75f85c6b0e11..7fe4e6fe2ed43d37014a02bae0063cf3931e2682 100644 (file)
--- a/style.css
+++ b/style.css
@@ -41,5 +41,6 @@ p{ Margin-Block: .5EM }
 :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 }
This page took 0.050718 seconds and 4 git commands to generate.