]> Lady’s Gitweb - x_status_git/commitdiff
Add feed links to main index
authorLady <redacted>
Sat, 16 Dec 2023 19:56:35 +0000 (14:56 -0500)
committerLady <redacted>
Sat, 23 Dec 2023 20:17:52 +0000 (15:17 -0500)
index.html
post-receive

index 3db74467c734bc6894be84a591800dbd12778433..4be82395752d44ec09e52048b3a65f27f9d71a44 100644 (file)
@@ -14,6 +14,7 @@ footer{ Border-Block-Start: Thin Solid; Padding-Block: 1REM; Font-Size: Smaller;
 footer p{ Margin-Block: 0 .5REM }
 footer time:Not([datetime]),
 footer small{ Font-Size: Inherit; Font-Style: Italic }
 footer p{ Margin-Block: 0 .5REM }
 footer time:Not([datetime]),
 footer small{ Font-Size: Inherit; Font-Style: Italic }
+svg{ Display: Inline-Block; Vertical-Align: Middle; Block-Size: 1EM; Inline-Size: 1EM; Fill: #FFF }
 </STYLE>
 <H1>Index</H1>
 <DIV Class=STATUS ID=status>
 </STYLE>
 <H1>Index</H1>
 <DIV Class=STATUS ID=status>
@@ -21,6 +22,7 @@ footer small{ Font-Size: Inherit; Font-Style: Italic }
 <SECTION ID=topics>
        <H2>Topics</H2>
 </SECTION>
 <SECTION ID=topics>
        <H2>Topics</H2>
 </SECTION>
+<DIV Hidden><SVG ID=feedicon Version=1.1 ViewBox="0 0 256 256"><RECT Width=256 Height=256 RX=55 RY=55 X=0 Y=0 Fill=CurrentColor /><RECT Width=236 Height=236 RX=47 RY=47 X=10 Y=10 Style="Fill: Inherit" /><CIRCLE CX=68 CY=189 R=24 Fill=CurrentColor /><PATH D="M 160 213 h -34 a 82 82 0 0 0 -82 -82 v -34 a 116 116 0 0 1 116 116 z" Fill=CurrentColor /><PATH D="M 184 213 A 140 140 0 0 0 44 73 V 38 a 175 175 0 0 1 175 175 z" Fill=CurrentColor /></SVG>
 <SCRIPT Type=module>
 const parser = new DOMParser
 document.title = location.hostname
 <SCRIPT Type=module>
 const parser = new DOMParser
 document.title = location.hostname
@@ -40,13 +42,22 @@ const renderLatest = (meta, container) => {
     authorshipP.appendChild(document.createTextNode(" @ ")) }
   authorshipP.appendChild(document.createElement("time")).textContent = status.created
   const nav = footer.appendChild(document.createElement("nav"))
     authorshipP.appendChild(document.createTextNode(" @ ")) }
   authorshipP.appendChild(document.createElement("time")).textContent = status.created
   const nav = footer.appendChild(document.createElement("nav"))
+  const atomLink = nav.appendChild(document.createElement("a"))
+  atomLink.href = feed
+  const atomSVG = document.createElementNS("http://www.w3.org/2000/svg", "svg")
+  atomSVG.setAttribute("version", "1.1")
+  atomSVG.setAttribute("viewBox", "0 0 256 256")
+  const atomUse = atomSVG.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "use"))
+  atomUse.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", "#feedicon")
+  atomLink.append(atomSVG, " Atom feed.")
+  nav.appendChild(document.createTextNode(" "))
   const permalink = nav.appendChild(document.createElement("a"))
   permalink.href = status["@id"]
   permalink.textContent = "Permalink."
   nav.appendChild(document.createTextNode(" "))
   const upLink = nav.appendChild(document.createElement("a"))
   upLink.href = meta["@id"]
   const permalink = nav.appendChild(document.createElement("a"))
   permalink.href = status["@id"]
   permalink.textContent = "Permalink."
   nav.appendChild(document.createTextNode(" "))
   const upLink = nav.appendChild(document.createElement("a"))
   upLink.href = meta["@id"]
-  upLink.textContent = `See more ${ status.subject ? `“${status.subject}” posts` : "statuses" }.`
+  upLink.textContent = `See more ${ status.subject ? `${status.subject}` : "status" } updates.`
   if (title) {
     const wrapper = document.createElement("article")
     const details = wrapper.appendChild(document.createElement("details"))
   if (title) {
     const wrapper = document.createElement("article")
     const details = wrapper.appendChild(document.createElement("details"))
index 948734d1122ca79cdc22db16a34c95761ccc635d..b07ad47ddfd28b92fae4bd8b7f0caaa58323404b 100755 (executable)
@@ -202,7 +202,7 @@ if stdin.read().split()[-1] == f"refs/heads/{LIVE_BRANCH}":
                else:
                        yyyy_mm = datetime[0:7]
                        if yyyy_mm not in months:
                else:
                        yyyy_mm = datetime[0:7]
                        if yyyy_mm not in months:
-                               months[yyyy_mm] = { "@context": { "@language": LANG, "activity": "https://www.w3.org/ns/activitystreams#", "dct": "http://purl.org/dc/terms/", "foaf": "http://xmlns.com/foaf/0.1/", "sioc": "http://rdfs.org/sioc/ns#", "sioct": "http://rdfs.org/sioc/types#", "OrderedCollectionPage": "activity:OrderedCollectionPage", "Thread": "sioc:Thread", "MicroblogPost": "sioct:MicroblogPost", "current": { "@id": "activity:current", "@type": "@id" }, "first": { "@id": "activity:first", "@type": "@id" }, "items": { "@id": "activity:items", "@type": "@id", "@container": "@list" }, "partOf": { "@id": "activity:partOf", "@type": "@id" }, "prev": { "@id": "activity:prev", "@type": "@id" }, "next": { "@id": "activity:next", "@type": "@id" }, "source": { "@id": "activity:source", "@type": "@id", "@context": { "content": { "@id": "activity:content", "@type": "http://www.w3.org/2001/XMLSchema#string" }, "mediaType": "activity:mediaType" } }, "created": { "@id": "dct:created", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" }, "creator": { "@id": "dct:creator", "@type": "@id" }, "identifier": { "@id":  "dct:identifier", "@type": "http://www.w3.org/2001/XMLSchema#anyURI" }, "title": "dct:title", "name": "foaf:name", "content": { "@id": "sioc:content", "@type": "http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral" } }, "@id": f"{PUBLIC_URL}/statuses/{yyyy_mm}", "@type": ["OrderedCollectionPage", "Thread"], "items": [], "partOf": f"{PUBLIC_URL}/statuses" }
+                               months[yyyy_mm] = { "@context": { "@language": LANG, "activity": "https://www.w3.org/ns/activitystreams#", "dct": "http://purl.org/dc/terms/", "foaf": "http://xmlns.com/foaf/0.1/", "sioc": "http://rdfs.org/sioc/ns#", "sioct": "http://rdfs.org/sioc/types#", "OrderedCollectionPage": "activity:OrderedCollectionPage", "Thread": "sioc:Thread", "MicroblogPost": "sioct:MicroblogPost", "current": { "@id": "activity:current", "@type": "@id" }, "first": { "@id": "activity:first", "@type": "@id" }, "items": { "@id": "activity:items", "@type": "@id", "@container": "@list" }, "partOf": { "@id": "activity:partOf", "@type": "@id" }, "prev": { "@id": "activity:prev", "@type": "@id" }, "next": { "@id": "activity:next", "@type": "@id" }, "source": { "@id": "activity:source", "@type": "@id", "@context": { "content": { "@id": "activity:content", "@type": "http://www.w3.org/2001/XMLSchema#string" }, "mediaType": "activity:mediaType" } }, "created": { "@id": "dct:created", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" }, "creator": { "@id": "dct:creator", "@type": "@id" }, "identifier": { "@id":  "dct:identifier", "@type": "http://www.w3.org/2001/XMLSchema#anyURI" }, "title": "dct:title", "name": "foaf:name", "content": { "@id": "sioc:content", "@type": "http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral" } }, "@id": f"{PUBLIC_URL}/statuses/{yyyy_mm}", "@type": ["OrderedCollectionPage", "Thread"], "feed": f"{PUBLIC_URL}/statuses.atom", "items": [], "partOf": f"{PUBLIC_URL}/statuses" }
                        months[yyyy_mm]["items"].append(status)
 
        # Set up the public directory.
                        months[yyyy_mm]["items"].append(status)
 
        # Set up the public directory.
This page took 0.048457 seconds and 4 git commands to generate.