-
-
Notifications
You must be signed in to change notification settings - Fork 183
/
Copy pathfeed-atom.xml
74 lines (62 loc) · 2.63 KB
/
feed-atom.xml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
permalink: /feed.xml
---
<?xml version="1.0" encoding="utf-8"?>
{%- include amsf/core -%}
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.name }}</title>
<subtitle>{{ site.description }}</subtitle>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ "/" | absolute_url | xml_escape }}</id>
<generator uri="https://sparanoid.com/lab/amsf/" version="{{ site.version }}">Almace Scaffolding</generator>
<link rel="alternate" type="text/html" hreflang="en" href="{{ '/' | absolute_url }}" />
<link rel="self" type="application/atom+xml" href="{{ amsf_page_url }}" />
<author>
<name>{{ site.data.authors.default.name }}</name>
<uri>{{ "/" | absolute_url }}</uri>
<email>{{ site.data.authors.default.email }}</email>
</author>
{% for post in site.posts limit:300 %}
{% if post.hidden != true %}
{% if site.link_blog and post.link %}
{% assign entry_link = post.link %}
{% else %}
{% assign entry_link = post.url | absolute_url %}
{% endif %}
{% capture entry_permalink %}
{% if site.link_blog and post.link %}
<p><a href="{{ post.url | absolute_url }}" title="Permalink to “{{ post.title | strip_html | xml_escape }}”"><small>◉ Permalink</small></a></p>
{% elsif site.link_blog != true and post.link %}
<p><a href="{{ post.link }}"><small>◉ Direct Link to Original Site</small></a></p>
{% endif %}
{% endcapture %}
<entry>
<title>{{ post.title | strip_html | xml_escape }}</title>
<id>{{ post.url | absolute_url | xml_escape }}</id>
<link rel="alternate" type="text/html" href="{{ entry_link }}" />
<published>{{ post.date | date_to_xmlschema }}</published>
{% if post.last_modified_at %}
<updated>{{ post.last_modified_at | date_to_xmlschema }}</updated>
{% else %}
<updated>{{ post.date | date_to_xmlschema }}</updated>
{% endif %}
<author>
<name>{{ author.name }}</name>
<uri>{{ author.web }}</uri>
<email>{{ author.email }}</email>
</author>
<content type="html" xml:base="{{ '/' | absolute_url }}">
{% if site.rss_excerpt %}
{{ post.excerpt | markdownify | xml_escape }}
{% else %}
{{ post.content | markdownify | xml_escape }}
{% endif %}
{{ entry_permalink | xml_escape}}
</content>
{% if post.excerpt and post.excerpt != empty %}
<summary>{{ post.excerpt | markdownify | strip_html | strip_newlines | xml_escape }}</summary>
{% endif %}
</entry>
{% endif %}
{% endfor %}
</feed>