1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?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" xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes" />
- <xsl:template match="/">
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <title>RSS Feed - xythobuz.de</title>
- <meta name="description">
- <xsl:attribute name="content">
- <xsl:value-of select="/rss/channel/description" />
- </xsl:attribute>
- </meta>
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <link rel="author" href="xythobuz@xythobuz.de" />
- <link rel="shortcut icon" href="img/favicon.ico" />
- <link type="text/css" rel="stylesheet" href="css/style.css" />
- </head>
- <body>
- <div id="wrap"><div id="nav">
- <a>
- <xsl:attribute name="href">
- <xsl:value-of select="/rss/channel/link" />
- </xsl:attribute>
- <h1>
- <xsl:value-of select="/rss/channel/title" />
- - RSS Feed
- <img src="img/rss.png" />
- </h1>
- </a>
- </div></div>
- <div id="content">
- <p>
- This is the RSS feed for my blog.
- You can use it to get notified about new posts automatically.
- </p>
- <p>
- If you're already used to this and wondering why this looks strange, this is a styled RSS feed.
- Just copy the URL into your newsreader.
- </p>
- <p>
- If you don't know what RSS is check out <a href="https://aboutfeeds.com">About Feeds</a> to get started.
- </p>
- <h1>Recent Blog Posts</h1>
- <ul>
- <xsl:for-each select="/rss/channel/item">
- <li>
- <a>
- <xsl:attribute name="href">
- <xsl:value-of select="link" />
- </xsl:attribute>
- <xsl:value-of select="title" />
- </a>
- <br />
- <span class="listdesc">
- Published: <xsl:value-of select="substring(pubDate, 1, string-length(pubDate) - 15)" />
- </span>
- <br />
- <span class="listdesc">
- Updated: <xsl:value-of select="substring(atom:updated, 1, string-length(atom:updated) - 15)" />
- </span>
- </li>
- </xsl:for-each>
- </ul>
- <p>
- Last rebuild at: <xsl:value-of select="substring(/rss/channel/lastBuildDate, 1, string-length(/rss/channel/lastBuildDate) - 6)" />
- </p>
- <p>
- Styled RSS feed inspired by <a href="https://darekkay.com/blog/rss-styling/">Darek Kay</a> and <a href="https://github.com/genmon/aboutfeeds/blob/main/tools/pretty-feed-v3.xsl">pretty-feed-v3</a>.
- </p>
- </div>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
|