My Blog, build with Norgolith blog.ladas552.me
blog

deleted the wrong files

Ladas552 9182ed84 ab585c3e

+43 -118
-42
public/assets/rss.xsl
··· 1 - <?xml version="1.0" encoding="utf-8"?> 2 - <xsl:stylesheet 3 - version="3.0" 4 - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 5 - xmlns:atom="http://www.w3.org/2005/Atom" 6 - > 7 - <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/> 8 - <xsl:template match="/"> 9 - <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> 10 - <head> 11 - <link rel="stylesheet" href="/assets/css/style.css" /> 12 - <title>RSS Feed | <xsl:value-of select="/rss/channel/title"/></title> 13 - </head> 14 - <body> 15 - <h1>Recent blog posts</h1> 16 - <p>Poorly styled. But it's at least better than seeing raw xml</p> 17 - <main> 18 - <xsl:for-each select="/rss/channel/item"> 19 - <div> 20 - <div> 21 - <xsl:value-of select="pubDate"/> 22 - </div> 23 - <h2> 24 - <a target="_blank"> 25 - <xsl:attribute name="href"> 26 - <xsl:value-of select="atom:link/@href"/> 27 - </xsl:attribute> 28 - <xsl:value-of select="title"/> 29 - </a> 30 - </h2> 31 - <xsl:if test="description"> 32 - <p> 33 - <xsl:value-of select="description"/> 34 - </p> 35 - </xsl:if> 36 - </div> 37 - </xsl:for-each> 38 - </main> 39 - </body> 40 - </html> 41 - </xsl:template> 42 - </xsl:stylesheet>
+43
public/rss.xml
··· 1 + <?xml version="1.0" encoding="UTF-8"?> 2 + <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 3 + <channel> 4 + <title>Rattman</title> 5 + <link>https://ladas552.me</link> 6 + <description>Latest posts</description> 7 + <generator>Norgolith</generator> 8 + <language>en-us</language> 9 + <lastBuildDate>Sat, 14 Jun 2025 20:47:05 +0000</lastBuildDate> 10 + <ttl>60</ttl> 11 + <atom:link href="https:&#x2F;&#x2F;ladas552.me/rss.xml" rel="self" type="application/rss+xml" /> 12 + 13 + <image> 14 + <url>https://ladas552.me&#x2F;assets&#x2F;nix-snowflake-rainbow.svg</url> 15 + <title>Rattman</title> 16 + <link>https://ladas552.me</link> 17 + <width>144</width> 18 + <height>144</height> 19 + </image> 20 + 21 + 22 + <item> 23 + <title>On Owning a Cat</title> 24 + <link>https://ladas552.me/posts/on_owning_a_cat/</link> 25 + <guid>https://ladas552.me/posts/on_owning_a_cat/</guid> 26 + <description>Troublesome blob of feline species</description> 27 + <author>Ladas552</author> 28 + <pubDate>Sat, 08 Feb 2025 00:00:00 +0000</pubDate> 29 + <category>cats</category> 30 + </item> 31 + 32 + <item> 33 + <title>Osu on Linux</title> 34 + <link>https://ladas552.me/posts/Osu_On_Linux/</link> 35 + <guid>https://ladas552.me/posts/Osu_On_Linux/</guid> 36 + <description>My experience running Osu on Linux and some advice</description> 37 + <author>Ladas552</author> 38 + <pubDate>Sun, 13 Apr 2025 00:00:00 +0000</pubDate> 39 + <category>games</category> 40 + </item> 41 + 42 + </channel> 43 + </rss>
-42
theme/assets/rss.xsl
··· 1 - <?xml version="1.0" encoding="utf-8"?> 2 - <xsl:stylesheet 3 - version="3.0" 4 - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 5 - xmlns:atom="http://www.w3.org/2005/Atom" 6 - > 7 - <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/> 8 - <xsl:template match="/"> 9 - <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> 10 - <head> 11 - <link rel="stylesheet" href="/assets/css/style.css" /> 12 - <title>RSS Feed | <xsl:value-of select="/rss/channel/title"/></title> 13 - </head> 14 - <body> 15 - <h1>Recent blog posts</h1> 16 - <p>Poorly styled. But it's at least better than seeing raw xml</p> 17 - <main> 18 - <xsl:for-each select="/rss/channel/item"> 19 - <div> 20 - <div> 21 - <xsl:value-of select="pubDate"/> 22 - </div> 23 - <h2> 24 - <a target="_blank"> 25 - <xsl:attribute name="href"> 26 - <xsl:value-of select="atom:link/@href"/> 27 - </xsl:attribute> 28 - <xsl:value-of select="title"/> 29 - </a> 30 - </h2> 31 - <xsl:if test="description"> 32 - <p> 33 - <xsl:value-of select="description"/> 34 - </p> 35 - </xsl:if> 36 - </div> 37 - </xsl:for-each> 38 - </main> 39 - </body> 40 - </html> 41 - </xsl:template> 42 - </xsl:stylesheet>
-34
theme/templates/rss.xml
··· 1 - <?xml version="1.0" encoding="UTF-8"?> 2 - <?xml-stylesheet href="assets/rss.xsl" type="text/xsl"?> 3 - <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 4 - <channel> 5 - <title>{{ config.title }}</title> 6 - <link>{{ config.rootUrl | escape_xml | safe }}</link> 7 - <description>{{ config.rss.description }}</description> 8 - <generator>Norgolith</generator> 9 - <language>{{ config.language }}</language> 10 - <lastBuildDate>{{ now | date(format="%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate> 11 - <ttl>{{ config.rss.ttl }}</ttl> 12 - <atom:link href="{{ config.rootUrl }}/rss.xml" rel="self" type="application/rss+xml" /> 13 - 14 - <image> 15 - <url>{{ config.rootUrl | escape_xml | safe }}{{ config.rss.image }}</url> 16 - <title>{{ config.title }}</title> 17 - <link>{{ config.rootUrl | escape_xml | safe }}</link> 18 - <width>144</width> 19 - <height>144</height> 20 - </image> 21 - 22 - {% for post in posts | filter(attribute="draft", value=false) %} 23 - <item> 24 - <title>{{ post.title }}</title> 25 - <link>{{ post.permalink | escape_xml | safe }}</link> 26 - <guid>{{ post.permalink | escape_xml | safe }}</guid> 27 - <description>{{ post.description }}</description> 28 - <author>Ladas552</author> 29 - <pubDate>{{ post.created | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate> 30 - {% if post.categories %}{% for category in post.categories %}<category>{{ category }}</category>{% endfor %}{% endif %} 31 - </item> 32 - {% endfor %} 33 - </channel> 34 - </rss>