aboutsummaryrefslogtreecommitdiffstats
path: root/public/atom.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'public/atom.xsl')
-rw-r--r--public/atom.xsl34
1 files changed, 34 insertions, 0 deletions
diff --git a/public/atom.xsl b/public/atom.xsl
new file mode 100644
index 0000000..c9c31b1
--- /dev/null
+++ b/public/atom.xsl
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom" exclude-result-prefixes="atom">
+ <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
+ <xsl:template match="/">
+ <html style="color-scheme: dark light">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+ <meta name="viewport" content="width=device-width, initial-scale=1"/>
+ <title>Subscribe to Feed</title>
+ <link rel="icon" href="/favicon.svg" type="image/svg+xml"/>
+ </head>
+ <body>
+ <h1>Atom Feed</h1>
+ <p>Looks Like you want to subscribe. You need to add the current url to your feed reader.</p>
+ <p><a href="https://en.wikipedia.org/wiki/Atom_(web_standard)">For More details of feeds</a></p>
+ <p><a href="{atom:link/@href}" download="sudomsg.atom.xml">Download the feed instead</a></p>
+ <h2>Post From <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="/atom:feed/atom:link[not(@rel)]/@href"/>
+ </xsl:attribute>
+ <xsl:value-of select="atom:feed/atom:title"/>
+ </a></h2>
+ <article>
+ <xsl:for-each select="atom:feed/atom:entry">
+ <a href="{atom:link/@href}">
+ <xsl:value-of select="atom:title"/>
+ - <xsl:value-of select="atom:updated"/>
+ </a>
+ </xsl:for-each>
+ </article>
+ </body>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>