summary refs log tree commit diff
path: root/src/feed.njk
blob: 8d21cefa14aa53c6353f989afa7e45cde4ad3ffc (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
36
37
38
---
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>{{- post.data.page.excerpt -}}</summary>
		{% endif -%}
		<content type="html">
			{{- post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) -}}
		</content>
	</entry>
{% endfor %}
</feed>