summary refs log tree commit diff
path: root/src/feed.njk
blob: 5eb08fc26dd1141d1c6ccacdc2746df625eed20f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
permalink = "blog/feed.xml"

[metadata]
name = "devin & Alex Starfall"
email = "us@starfall.systems"
baseurl = "https://starfall.systems/"
blogurl = "https://starfall.systems/blog/"
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title>Starfall's Blog</title>
	<link href="{{ permalink | absoluteUrl(metadata.baseurl) }}" rel="self"/>
	<link href="{{ metadata.blogurl }}"/>
	<updated>{{ collections.post | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
	<id>{{ metadata.baseurl }}</id>

	<author>
		<name>{{ metadata.name }}</name>
		<email>{{ metadata.email }}</email>
	</author>

{% for post in collections.post | reverse %}
{%- set absolutePostUrl = post.url | absoluteUrl(metadata.baseurl) %}
	<entry>
		<title>{{ post.data.title }}</title>
		<updated>{{ post.date | dateToRfc3339 }}</updated>
		<link href="{{ absolutePostUrl }}"/>
		<id>{{ absolutePostUrl }}</id>
		{%- if post.data.page.excerpt %}
		<summary type="html">{{- post.data.page.excerpt | md | htmlToAbsoluteUrls(absolutePostUrl) -}}</summary>
		{% endif -%}
	</entry>
{% endfor %}
</feed>