mirror of
https://github.com/Dichgrem/Blog.git
synced 2025-08-01 09:19:32 -04:00
fix:remove-public-history
This commit is contained in:
60
public/rss-style.xslt
Executable file
60
public/rss-style.xslt
Executable file
@ -0,0 +1,60 @@
|
||||
<?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">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:template match="/">
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="referrer" content="unsafe-url" />
|
||||
<title><xsl:value-of select="/atom:feed/atom:title"/></title>
|
||||
<link rel="stylesheet" href="/css/water.min.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>
|
||||
<xsl:value-of select="/atom:feed/atom:title"/>
|
||||
</h1>
|
||||
|
||||
<p>
|
||||
<xsl:value-of select="/atom:feed/atom:subtitle"/>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
This is the Atom news feed for the
|
||||
<a><xsl:attribute name="href">
|
||||
<xsl:value-of select="/atom:feed/atom:link[@rel='alternate']/@href | /atom:feed/atom:link[not(@rel)]/@href"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="/atom:feed/atom:title"/></a>
|
||||
website.
|
||||
</p>
|
||||
<p>It is meant for <a href="https://www.feed.style/newsreaders.html">news readers</a>, not humans. Please copy-and-paste the URL into your news reader!</p>
|
||||
<p>
|
||||
<code id="feedurl"><xsl:value-of select="/atom:feed/atom:link[@rel='self']/@href"/></code>
|
||||
</p>
|
||||
<xsl:for-each select="/atom:feed/atom:entry">
|
||||
<details><summary>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="atom:id"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="atom:title"/>
|
||||
</a> - 
|
||||
<xsl:value-of select="atom:updated" />
|
||||
</summary>
|
||||
<xsl:choose>
|
||||
<xsl:when test="atom:content">
|
||||
<xsl:value-of disable-output-escaping="yes" select="atom:content" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="atom:summary" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</details>
|
||||
</xsl:for-each>
|
||||
<p><xsl:value-of select="count(/atom:feed/atom:entry)"/> news items.</p>
|
||||
<p><small>Powered by <a href="https://www.feed.style/">Feed.Style</a></small></p>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
Reference in New Issue
Block a user