aboutsummaryrefslogtreecommitdiffstats
path: root/public/atom.xsl
blob: c9c31b1062a94b93af9055f82ba2132d2e7a8736 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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>