aboutsummaryrefslogtreecommitdiff
path: root/templates/feed.xml
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-12-06 17:37:28 -0800
committerFranck Cuny <franck@fcuny.net>2024-12-06 17:37:41 -0800
commit0a350777002ba638bcd44eb23db323b12f7c5d9e (patch)
treef512c7c320e34d301c4f3715f16a098552c2b530 /templates/feed.xml
parentsome style changes for the default template (diff)
downloadfcuny.net-0a350777002ba638bcd44eb23db323b12f7c5d9e.tar.gz
get rid of sections
I use tags to organize things.
Diffstat (limited to '')
-rw-r--r--templates/feed.xml39
1 files changed, 0 insertions, 39 deletions
diff --git a/templates/feed.xml b/templates/feed.xml
deleted file mode 100644
index 2ac0851..0000000
--- a/templates/feed.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}">
- <title>{{ config.title }}</title>
- <link rel="self" type="application/atom+xml" href="{{ feed_url | safe }}"/>
- <updated>{{ last_updated | date(format="%+") }}</updated>
- <id>{{ feed_url | safe }}</id>
- {%- set blog = get_section(path="blog/_index.md") -%}
- {%- for page in blog.pages %}
- <entry xml:lang="{{ page.lang }}">
- <title>{{ page.title }}</title>
- <published>{{ page.date | date(format="%+") }}</published>
- <updated>{{ page.updated | default(value=page.date) | date(format="%+") }}</updated>
- {% for author in page.authors %}
- <author>
- <name>
- {{ author }}
- </name>
- </author>
- {% else %}
- <author>
- <name>
- {%- if config.author -%}
- {{ config.author }}
- {%- else -%}
- Unknown
- {%- endif -%}
- </name>
- </author>
- {% endfor %}
- <link rel="alternate" type="text/html" href="{{ page.permalink | safe }}"/>
- <id>{{ page.permalink | safe }}</id>
- {% if page.summary %}
- <summary type="html">{{ page.summary }}</summary>
- {% else %}
- <content type="html" xml:base="{{ page.permalink | escape_xml | safe }}">{{ page.content }}</content>
- {% endif %}
- </entry>
- {%- endfor %}
-</feed>