website

#astro#js#html#css

git clone https://git.pyrossh.dev/website

木 Personal website of pyrossh. Built with astrojs, shiki, vite.


src/feed.njk
3c79a68 1
---
3c79a68 2
permalink: /rss.xml
3c79a68 3
eleventyExcludeFromCollections: true
3c79a68 4
---
3c79a68 5
<?xml version="1.0" encoding="UTF-8"?>
3c79a68 6
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3c79a68 7
  <channel>
3c79a68 8
    <title>{{ site.title }}</title>
3c79a68 9
    <link>{{ site.url }}</link>
3c79a68 10
    <description>{{ site.description }}</description>
3c79a68 11
    <atom:link href="{{ site.url }}/rss.xml" rel="self" type="application/rss+xml"/>
3c79a68 12
    {% for post in collections.posts | reverse %}
3c79a68 13
    <item>
3c79a68 14
      <title>{{ post.data.title }}</title>
3c79a68 15
      <link>{{ site.url }}{{ post.url }}</link>
3c79a68 16
      <guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
3c79a68 17
      <pubDate>{{ post.data.pubDate | dateToRfc822 }}</pubDate>
3c79a68 18
      <description>{{ post.data.description }}</description>
3c79a68 19
    </item>
3c79a68 20
    {% endfor %}
3c79a68 21
  </channel>
3c79a68 22
</rss>