refactor: formatting

This commit is contained in:
moanos [he/him] 2024-05-30 13:28:56 +02:00
parent 968ba04480
commit cb3cf7e8c3

View File

@ -1,221 +1,223 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:atom="http://www.w3.org/2005/Atom"> xmlns:atom="http://www.w3.org/2005/Atom">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/"> <xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head> <head>
<title> <title>
RSS Feed | RSS Feed |
<xsl:value-of select="/atom:feed/atom:title"/> <xsl:value-of select="/atom:feed/atom:title"/>
</title> </title>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/> <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/> <meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="/static/fellchensammlung/css/rss-styles.css"/> <link rel="stylesheet" type="text/css" href="/static/fellchensammlung/css/rss-styles.css"/>
</head> </head>
<body> <body>
<main> <main>
<alert-box type="info"> <alert-box type="info">
<strong>This is an RSS feed</strong>. Subscribe by copying <strong>This is an RSS feed</strong>. Subscribe by copying
the URL from the address bar into your newsreader. Visit <a the URL from the address bar into your newsreader. Visit <a
href="https://aboutfeeds.com">About Feeds href="https://aboutfeeds.com">About Feeds
</a> to learn more and get started. Its free. </a> to learn more and get started. Its free.
</alert-box> </alert-box>
<div class="rss-summary"> <div class="rss-summary">
<h1 class="flex items-start"> <h1 class="flex items-start">
RSS Feed Preview RSS Feed Preview
<svg <svg
class="inline-icon" class="inline-icon"
version="1.1" version="1.1"
width="128px" width="128px"
height="128px" height="128px"
id="RSSicon" id="RSSicon"
viewBox="0 0 256 256" viewBox="0 0 256 256"
sodipodi:docname="Feed-icon.svg" sodipodi:docname="Feed-icon.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"> xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview <sodipodi:namedview
id="namedview32" id="namedview32"
pagecolor="#ffffff" pagecolor="#ffffff"
bordercolor="#666666" bordercolor="#666666"
borderopacity="1.0" borderopacity="1.0"
inkscape:showpageshadow="2" inkscape:showpageshadow="2"
inkscape:pageopacity="0.0" inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0" inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1" inkscape:deskcolor="#d1d1d1"
showgrid="false" showgrid="false"
inkscape:zoom="2.9085291" inkscape:zoom="2.9085291"
inkscape:cx="161.07798" inkscape:cx="161.07798"
inkscape:cy="133.22886" inkscape:cy="133.22886"
inkscape:window-width="2048" inkscape:window-width="2048"
inkscape:window-height="1252" inkscape:window-height="1252"
inkscape:window-x="0" inkscape:window-x="0"
inkscape:window-y="0" inkscape:window-y="0"
inkscape:window-maximized="1" inkscape:window-maximized="1"
inkscape:current-layer="RSSicon" /> inkscape:current-layer="RSSicon"/>
<defs <defs
id="defs17"> id="defs17">
<linearGradient <linearGradient
x1="0.085" x1="0.085"
y1="0.085" y1="0.085"
x2="0.915" x2="0.915"
y2="0.915" y2="0.915"
id="RSSg"> id="RSSg">
<stop <stop
offset="0.0" offset="0.0"
stop-color="#E3702D" stop-color="#E3702D"
id="stop2" /> id="stop2"/>
<stop <stop
offset="0.1071" offset="0.1071"
stop-color="#EA7D31" stop-color="#EA7D31"
id="stop4" /> id="stop4"/>
<stop <stop
offset="0.3503" offset="0.3503"
stop-color="#F69537" stop-color="#F69537"
id="stop6" /> id="stop6"/>
<stop <stop
offset="0.5" offset="0.5"
stop-color="#FB9E3A" stop-color="#FB9E3A"
id="stop8" /> id="stop8"/>
<stop <stop
offset="0.7016" offset="0.7016"
stop-color="#EA7C31" stop-color="#EA7C31"
id="stop10" /> id="stop10"/>
<stop <stop
offset="0.8866" offset="0.8866"
stop-color="#DE642B" stop-color="#DE642B"
id="stop12" /> id="stop12"/>
<stop <stop
offset="1.0" offset="1.0"
stop-color="#D95B29" stop-color="#D95B29"
id="stop14" /> id="stop14"/>
</linearGradient> </linearGradient>
</defs> </defs>
<rect <rect
width="256" width="256"
height="256" height="256"
rx="55" rx="55"
ry="55" ry="55"
x="0" x="0"
y="0" y="0"
fill="#CC5D15" fill="#CC5D15"
id="rect19" id="rect19"
style="fill:#414141;fill-opacity:1" /> style="fill:#414141;fill-opacity:1"/>
<rect <rect
width="246" width="246"
height="246" height="246"
rx="50" rx="50"
ry="50" ry="50"
x="5" x="5"
y="5" y="5"
fill="#F49C52" fill="#F49C52"
id="rect21" id="rect21"
style="fill:#414141;fill-opacity:1" /> style="fill:#414141;fill-opacity:1"/>
<rect <rect
width="236" width="236"
height="236" height="236"
rx="47" rx="47"
ry="47" ry="47"
x="10" x="10"
y="10" y="10"
fill="url(#RSSg)" fill="url(#RSSg)"
id="rect23" id="rect23"
style="fill:#414141;fill-opacity:1" /> style="fill:#414141;fill-opacity:1"/>
<circle <circle
cx="68" cx="68"
cy="189" cy="189"
r="24" r="24"
fill="#FFF" fill="#FFF"
id="circle25" /> id="circle25"/>
<path <path
d="M160 213h-34a82 82 0 0 0 -82 -82v-34a116 116 0 0 1 116 116z" d="M160 213h-34a82 82 0 0 0 -82 -82v-34a116 116 0 0 1 116 116z"
fill="#FFF" fill="#FFF"
id="path27" /> id="path27"/>
<path <path
d="M184 213A140 140 0 0 0 44 73 V 38a175 175 0 0 1 175 175z" d="M184 213A140 140 0 0 0 44 73 V 38a175 175 0 0 1 175 175z"
fill="#FFF" fill="#FFF"
id="path29" /> id="path29"/>
<rect <rect
width="256" width="256"
height="256" height="256"
rx="55" rx="55"
ry="55" ry="55"
x="299.70761" x="299.70761"
y="188.99872" y="188.99872"
fill="#CC5D15" fill="#CC5D15"
id="rect19-3" id="rect19-3"
style="fill:#414141;fill-opacity:1" /> style="fill:#414141;fill-opacity:1"/>
<rect <rect
width="246" width="246"
height="246" height="246"
rx="50" rx="50"
ry="50" ry="50"
x="304.70761" x="304.70761"
y="193.99872" y="193.99872"
fill="#F49C52" fill="#F49C52"
id="rect21-6" id="rect21-6"
style="fill:#414141;fill-opacity:1" /> style="fill:#414141;fill-opacity:1"/>
<rect <rect
width="236" width="236"
height="236" height="236"
rx="47" rx="47"
ry="47" ry="47"
x="309.70761" x="309.70761"
y="198.99872" y="198.99872"
fill="url(#RSSg)" fill="url(#RSSg)"
id="rect23-7" id="rect23-7"
style="fill:#414141;fill-opacity:1" /> style="fill:#414141;fill-opacity:1"/>
<circle <circle
cx="367.70761" cx="367.70761"
cy="377.99872" cy="377.99872"
r="24" r="24"
fill="#ffffff" fill="#ffffff"
id="circle25-5" /> id="circle25-5"/>
<path <path
d="m 459.7076,401.99872 h -34 a 82,82 0 0 0 -82,-82 v -34 a 116,116 0 0 1 116,116 z" d="m 459.7076,401.99872 h -34 a 82,82 0 0 0 -82,-82 v -34 a 116,116 0 0 1 116,116 z"
fill="#ffffff" fill="#ffffff"
id="path27-3" /> id="path27-3"/>
<path <path
d="m 483.7076,401.99872 a 140,140 0 0 0 -140,-140 v -35 a 175,175 0 0 1 175,175 z" d="m 483.7076,401.99872 a 140,140 0 0 0 -140,-140 v -35 a 175,175 0 0 1 175,175 z"
fill="#ffffff" fill="#ffffff"
id="path29-5" /> id="path29-5"/>
</svg> </svg>
</h1> </h1>
<h2><xsl:value-of select="/rss/channel/title"/></h2> <h2>
<p> <xsl:value-of select="/rss/channel/title"/>
<xsl:value-of select="/atom:feed/atom:subtitle"/> </h2>
</p> <p>
<a> <xsl:value-of select="/atom:feed/atom:subtitle"/>
<xsl:attribute name="href"> </p>
/ <a>
</xsl:attribute> <xsl:attribute name="href">
Visit Website &#x2192; /
</a> </xsl:attribute>
Visit Website &#x2192;
</a>
<h2>Adoption Notices</h2> <h2>Adoption Notices</h2>
<xsl:for-each select="/rss/channel/item"> <xsl:for-each select="/rss/channel/item">
<div class="post-summary"> <div class="post-summary">
<h1> <h1>
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="atom:link/@href"/> <xsl:value-of select="atom:link/@href"/>
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="title"/> <xsl:value-of select="title"/>
</a> </a>
</h1> </h1>
<div class="post-description"> <div class="post-description">
<xsl:value-of select="description"/> <xsl:value-of select="description"/>
</div> </div>
</div> </div>
</xsl:for-each> </xsl:for-each>
</div> </div>
</main> </main>
</body> </body>
</html> </html>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>