-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.njk
36 lines (36 loc) · 1.28 KB
/
feed.njk
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
---
permalink: feed.xml
metadata:
title: Taughannock Falls State Park
url: https://taughannock.us
author:
name: Scott Dawson
feed:
subtitle: Taughannock Falls State Park, in New York State's Finger Lakes region near Ithaca and Trumansburg, hosts the tallest single-drop waterfall east of the Rocky Mountains.
filename: feed.xml
path: feed.xml
url: https://taughannock.us/feed.xml
id: https://taughannock.us
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ metadata.title }}</title>
<subtitle>{{ metadata.feed.subtitle }}</subtitle>
<link href="{{ metadata.feed.url }}" rel="self"/>
<link href="{{ metadata.url }}"/>
<updated>{{ collections.post | rssLastUpdatedDate }}</updated>
<id>{{ metadata.feed.id }}</id>
<author>
<name>{{ metadata.author.name }}</name>
</author>
{%- for post in collections.post | reverse %}
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}
<entry>
<title>{{ post.data.title }}</title>
<link href="{{ absolutePostUrl }}"/>
<updated>{{ post.date | rssDate }}</updated>
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
</entry>
{%- endfor %}
</feed>