aboutsummaryrefslogtreecommitdiffstats
path: root/public/atom.xsl
diff options
context:
space:
mode:
author2025-06-29 14:35:59 +0530
committer2025-06-29 14:56:43 +0530
commit8c3daee242c1037d49475cbe977db3c952abf9f6 (patch)
tree1976df242095dcc08b2171ac0e800a622da4b2b7 /public/atom.xsl
parentMerge pull request #3 from marcthe12/dependabot/npm_and_yarn/npm_and_yarn-46b... (diff)
downloadsudomsg-8c3daee242c1037d49475cbe977db3c952abf9f6.tar
sudomsg-8c3daee242c1037d49475cbe977db3c952abf9f6.tar.gz
sudomsg-8c3daee242c1037d49475cbe977db3c952abf9f6.tar.bz2
sudomsg-8c3daee242c1037d49475cbe977db3c952abf9f6.tar.lz
sudomsg-8c3daee242c1037d49475cbe977db3c952abf9f6.tar.xz
sudomsg-8c3daee242c1037d49475cbe977db3c952abf9f6.tar.zst
sudomsg-8c3daee242c1037d49475cbe977db3c952abf9f6.zip
Add the first post
Signed-off-by: Marc Pervaz Boocha <mboocha@sudomsg.com>
Diffstat (limited to '')
-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>