]> Lady’s Gitweb - x_status_git/blobdiff - index.html
Add feed links to main index
[x_status_git] / index.html
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 }
+svg{ Display: Inline-Block; Vertical-Align: Middle; Block-Size: 1EM; Inline-Size: 1EM; Fill: #FFF }
 </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>
+<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
@@ -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"))
+  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"]
-  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"))
This page took 0.072066 seconds and 4 git commands to generate.