forked from sparanoid/almace-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 7
/
feed-atom.xml
60 lines (54 loc) · 2.38 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
---
permalink: /feed/index.xml
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.name }}</title>
<subtitle>{{ site.description }}</subtitle>
<updated>{{ site.time | date_to_xmlschema }}</updated>
{% assign site_domain = site.url | replace:'http://', '' | replace:'https://', '' %}
<id>tag:{{ site_domain }},2005:/</id>
<link rel="alternate" type="text/html" hreflang="en" href="{{ site.base | prepend: site.url }}/"/>
<link rel="self" type="application/atom+xml" href="{{ site.feed | prepend: site.base | prepend: site.url }}/"/>
<rights>Copyright © {{ site.time | date: "%Y" }}, {{ site.profile.user }}</rights>
<author>
<name>{{ site.profile.user }}</name>
<uri>{{ site.base | prepend: site.url }}/</uri>
<email>{{ site.profile.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 | prepend: site.base | prepend: site.url %}
{% endif %}
{% capture entry_permalink %}
{% if site.link_blog and post.link %}
<p><a href="{{ post.url | prepend: site.base | prepend: site.url }}" title="Permalink to “{{ post.title | strip_html | xml_escape }}”">◉ Permalink</a></p>
{% elsif site.link_blog != true and post.link %}
<p><a href="{{ post.link }}">◉ Direct Link to Original Site</a></p>
{% endif %}
{% endcapture %}
<entry>
<title>{{ post.title | strip_html | xml_escape }}</title>
<id>tag:{{ site.base | prepend: site_domain }},{{ post.date | date: "%Y" }}:{{ post.id }}/</id>
<link rel="alternate" type="text/html" href="{{ entry_link }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<author>
<name>{{ site.profile.user }}</name>
<uri>{{ site.base | prepend: site.url }}/</uri>
<email>{{ site.profile.email }}</email>
</author>
<content type="html" xml:base="{{ site.base | prepend: site.url }}/">
{% if site.rss_excerpt %}
{{ post.excerpt | xml_escape }}
{% else %}
{{ post.content | xml_escape }}
{% endif %}
{{ entry_permalink | xml_escape}}
</content>
</entry>
{% endif %}
{% endfor %}
</feed>