-
Notifications
You must be signed in to change notification settings - Fork 1
/
feed.njk
32 lines (31 loc) · 1.17 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
---
url: /feed.atom
renderOrder: 1
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Better Know Canvas</title>
<subtitle>A collection of advanced web graphics tutorials</subtitle>
<link href="{{ baseURL }}" />
<link href="{{ baseURL }}feed.atom" rel="self" />
{% for a in search.pages("layout=article.njk").slice(-1) %}<updated>{{ a.data.date | date('ATOM') }}</updated>{% endfor %}
<id>{{ baseURL }}feed.atom</id>
<author>
<name>Fernando Serboncini</name>
<email>[email protected]</email>
</author>
{%- for article in search.pages("layout=article.njk subpage!=true") | reverse -%}
{% set absoluteURL %}{{ baseURL }}{{ article.data.url | url }}{% endset %}
<entry>
<title>{{ article.data.title }}</title>
<link href="{{ absoluteURL }}"/>
<updated>{{ article.data.date | date('ATOM') }}</updated>
<id>{{ absoluteURL }}</id>
<content type="html">
<a href="{{baseURL}}/{{article.data.relativePath}}">
<img alt="{{ article.data.title }}" src="{{baseURL}}/{{article.data.relativePath}}/shot.webp"><br>
{{ article.data.title }}</a>
</content>
</entry>
{%- endfor %}
</feed>