feat: created rss feed

This commit is contained in:
Leyla Becker 2026-02-12 20:28:48 -06:00
parent 0152503a52
commit b56461b237
3 changed files with 38 additions and 0 deletions

View file

@ -88,6 +88,12 @@
</span> </span>
source source
</a> </a>
<a href="/feed.xml" style="display: flex;">
<span style="display: inline-block; width: 24px; height: 24px; margin: 0 8px;">
<img src="{{ 'rss-icon.svg' | fileHash('assets') }}" alt="Tor Onion Logo" style="width: 100%; height: 100%;">
</span>
rss
</a>
<a href="http://2ggpzgonqsll5gi56u47aywu4qyl37eiu5jjrq7ma43z77ekkwuqxmid.onion" style="display: flex;"> <a href="http://2ggpzgonqsll5gi56u47aywu4qyl37eiu5jjrq7ma43z77ekkwuqxmid.onion" style="display: flex;">
<span style="display: inline-block; width: 24px; height: 24px; margin: 0 8px;"> <span style="display: inline-block; width: 24px; height: 24px; margin: 0 8px;">
<img src="{{ 'onion-icon.svg' | fileHash('assets') }}" alt="Tor Onion Logo" style="width: 100%; height: 100%;"> <img src="{{ 'onion-icon.svg' | fileHash('assets') }}" alt="Tor Onion Logo" style="width: 100%; height: 100%;">

4
assets/rss-icon.svg Normal file
View file

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<circle cx="6.18" cy="17.82" r="2.18"/>
<path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 7.07 7.07h2.83c0-5.47-4.43-9.9-9.9-9.9z"/>
</svg>

After

Width:  |  Height:  |  Size: 289 B

28
feed.njk Normal file
View file

@ -0,0 +1,28 @@
---
permalink: /feed.xml
eleventyExcludeFromCollections: true
---
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Volpe</title>
<link>{{ site.url }}/</link>
<description>Blog posts from Volpe</description>
<language>en</language>
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml"/>
{%- for post in collections.posts | reverse %}
<item>
<title>{{ post.data.title | escape }}</title>
<link>{{ site.url }}{{ post.url }}</link>
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
<pubDate>{{ post.data.createdAt.toRFC2822() }}</pubDate>
{%- if post.data.updatedAt %}
<atom:updated>{{ post.data.updatedAt.toISO() }}</atom:updated>
{%- endif %}
{%- if post.data.description %}
<description><![CDATA[{{ post.data.description }}]]></description>
{%- endif %}
</item>
{%- endfor %}
</channel>
</rss>