Skip to content

Commit 35a9dc3

Browse files
committed
update: feed.njk — formatting spacing
1 parent 7f21c6f commit 35a9dc3

1 file changed

Lines changed: 24 additions & 21 deletions

File tree

src/feed.njk

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,32 @@
1313
}
1414
}
1515
---
16+
1617
<?xml version="1.0" encoding="utf-8"?>
1718
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="{{ link.website }}">
18-
<title>{{ metadata.title }}</title>
19-
<subtitle>{{ metadata.subtitle }}</subtitle>
20-
<link href="{{ permalink | absoluteUrl(link.website) }}" rel="self" type="application/atom+xml"/>
21-
<link href="{{ link.website }}" rel="alternate" type="text/html"/>
22-
<updated>{{ collections.post | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
23-
<id>{{ link.website }}</id>
24-
<author>
25-
<name>{{ metadata.author.name }}</name>
26-
<email>{{ metadata.author.email }}</email>
27-
</author>
28-
{%- for post in collections.post | reverse %}
19+
<title>{{ metadata.title }}</title>
20+
<subtitle>{{ metadata.subtitle }}</subtitle>
21+
<link href="{{ permalink | absoluteUrl(link.website) }}"
22+
rel="self"
23+
type="application/atom+xml" />
24+
<link href="{{ link.website }}" rel="alternate" type="text/html" />
25+
<updated>{{ collections.post | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
26+
<id>{{ link.website }}</id>
27+
<author>
28+
<name>{{ metadata.author.name }}</name>
29+
<email>{{ metadata.author.email }}</email>
30+
</author>
31+
{%- for post in collections.post | reverse %}
2932
{%- set absolutePostUrl = post.url | absoluteUrl(link.website) %}
3033
<entry>
31-
<title>{{ post.data.title }}</title>
32-
<link href="{{ absolutePostUrl }}"/>
33-
<updated>{{ post.date | dateToRfc3339 }}</updated>
34-
<id>{{ absolutePostUrl }}</id>
35-
<content xml:lang="{{ metadata.language }}" type="html">
36-
{%- set templateContent = post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) %}
37-
{{ templateContent | safe }}
38-
</content>
34+
<title>{{ post.data.title }}</title>
35+
<link href="{{ absolutePostUrl }}" />
36+
<updated>{{ post.date | dateToRfc3339 }}</updated>
37+
<id>{{ absolutePostUrl }}</id>
38+
<content xml:lang="{{ metadata.language }}" type="html">
39+
{%- set templateContent = post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) %}
40+
{{ templateContent | safe }}
41+
</content>
3942
</entry>
40-
{%- endfor %}
41-
</feed>
43+
{%- endfor %}
44+
</feed>

0 commit comments

Comments
 (0)