rss for every category

This commit is contained in:
Joshua Seigler 2025-07-02 02:10:05 -04:00
parent cd6347f8c2
commit 0dde8aff3d
12 changed files with 90 additions and 88 deletions

7
assets/icons/rss.svg Normal file
View file

@ -0,0 +1,7 @@
<!-- License: MIT. Made by edent: https://github.com/edent/SuperTinyIcons -->
<svg xmlns="http://www.w3.org/2000/svg"
aria-label="RSS" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="transparent"/><circle cx="145" cy="367" r="35" fill="#fff"/><path fill="none" stroke="#fff" stroke-width="60" d="M109 241c89 0 162 73 162 162m114 0c0-152-124-276-276-276"/></svg>

After

Width:  |  Height:  |  Size: 392 B

View file

@ -1,55 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" />
<xsl:template match="/">
<html>
<head>
<style>
body {
font-family: "Inter",sans-serif;
font-size: 14px;
font-weight: 300;
color: hsl(217 17% 21%);
max-width: 1024px;
margin: 20px auto;
padding: 15px;
}
img {
float: right;
height: 40px;
margin: 12px 0;
}
a {
color: #4a66b9;
text-decoration: none;
}
</style>
</head>
<body>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="//channel/image/url" />
</xsl:attribute>
</xsl:element>
<h1>
<xsl:value-of select="//channel/title" />
</h1>
<hr />
<xsl:apply-templates select="//item" />
</body>
</html>
</xsl:template>
<xsl:template match="item">
<content-item>
<h2>
<a href="{link}">
<xsl:value-of select="title" />
</a>
</h2>
<p>
<xsl:value-of select="description" />
</p>
</content-item>
</xsl:template>
</xsl:stylesheet>

1
assets/simple-atom.css Normal file

File diff suppressed because one or more lines are too long

View file

@ -9,11 +9,11 @@
<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="https://www.rss.style/css/water.min.css" />
<link rel="stylesheet" href="/simple-atom.css" />
</head>
<body>
<h1>
<img alt="feed icon" src="https://www.vectorlogo.zone/logos/rss/rss-tile.svg" style="height:1em;vertical-align:middle;" />&#xa0;
<img alt="feed icon" src="/icons/rss.svg" style="height:1em;vertical-align:middle;" />&#xa0;
<xsl:value-of select="/atom:feed/atom:title"/>
</h1>