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