]> Lady’s Gitweb - x_status_git/commitdiff
Add backnavigation to various listings
authorLady <redacted>
Sun, 18 Sep 2022 08:15:45 +0000 (01:15 -0700)
committerLady <redacted>
Fri, 15 Dec 2023 03:55:37 +0000 (22:55 -0500)
statuses.html
topic.html
topics.html

index 60d5aa0b691bdaee61fb10a4381d5e2cf5b6226b..7571990bd1429c335e1affe45d3debdecfb67dd5 100644 (file)
@@ -5,7 +5,7 @@
 body{ Display: Grid; Box-Sizing: Border-Box; Margin: Auto; Padding-Inline: 1REM; Min-Block-Size: 100VH; Inline-Size: 100%; Max-Inline-Size: 45REM; Align-Content: Center; Justify-Content: Stretch; Font-Family: Sans-Serif }
 </STYLE>
 <H1>Statuses</H1>
-<NAV><UL></UL></NAV>
+<NAV><P><A HRef=/>Home</A></P><UL></UL></NAV>
 <SCRIPT Type=module>
 const ul = document.body.querySelector("nav>ul")
 fetch(`${location}.jsonld`)
index ff648db32c34ef33e0fa365e9b749303a14c0dd4..ea9b38438907eada202534a47190277593c09317 100644 (file)
@@ -5,11 +5,17 @@
 body{ Display: Grid; Box-Sizing: Border-Box; Margin: Auto; Padding-Inline: 1REM; Min-Block-Size: 100VH; Inline-Size: 100%; Max-Inline-Size: 45REM; Align-Content: Center; Justify-Content: Stretch; Font-Family: Sans-Serif }
 </STYLE>
 <H1>Topic Feed</H1>
-<NAV><DL></DL></NAV>
+<NAV><P><A HRef=/>Home</A></P><DL></DL></NAV>
 <SCRIPT Type=module>
 const nav = document.body.querySelector("nav")
 const dl = nav.querySelector("dl")
 const parser = new DOMParser
+if (location.pathname.startsWith("/topics/")) {
+  const a = nav
+  .insertBefore(document.createElement("p"), dl)
+  .appendChild(document.createElement("a"))
+  a.href = "/topics/"
+  a.textContent = "Topics" }
 fetch(`${location}.jsonld`)
 .then($ => $.json())
 .then(meta => {
index b0c50175a203704eb5794ac4a252e5184003c493..76431950a34392ef36229225afc71e1488c318da 100644 (file)
@@ -5,7 +5,7 @@
 body{ Display: Grid; Box-Sizing: Border-Box; Margin: Auto; Padding-Inline: 1REM; Min-Block-Size: 100VH; Inline-Size: 100%; Max-Inline-Size: 45REM; Align-Content: Center; Justify-Content: Stretch; Font-Family: Sans-Serif }
 </STYLE>
 <H1>Topics</H1>
-<NAV><UL></UL></NAV>
+<NAV><P><A HRef=/>Home</A></P><UL></UL></NAV>
 <SCRIPT Type=module>
 const ul = document.body.querySelector("nav>ul")
 fetch(`${location}.jsonld`)
This page took 0.02413 seconds and 4 git commands to generate.