aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-08-13 17:24:30 +0300
committerYaroslav <contact@yaroslavps.com>2020-08-13 17:24:30 +0300
commit12503fd8211bbdf07d5211ad49645bfd0fef8a3e (patch)
treed5d6202ce525229e2b5d317ce3a21f31525dd3fb /templates
parent0371efd5fbe75fcad7564114bc81abd73197473b (diff)
downloadyaroslavps.com-12503fd8211bbdf07d5211ad49645bfd0fef8a3e.tar.gz
yaroslavps.com-12503fd8211bbdf07d5211ad49645bfd0fef8a3e.zip
First changes for separate section feeds
https://github.com/getzola/zola/pull/1128
Diffstat (limited to 'templates')
-rw-r--r--templates/feed.xml10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/feed.xml b/templates/feed.xml
index 66dd91c..ab5d340 100644
--- a/templates/feed.xml
+++ b/templates/feed.xml
@@ -1,7 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}">
- <title>A weblog by Yaroslav de la Peña Smirnov
- {%- if term %} - {{ term.name }}
+ <title>
+ {%- if section.title -%}
+ {{ section.title }}
+ {%- else -%}
+ A website by Yaroslav de la Peña Smirnov
{%- endif -%}
</title>
{%- if config.description %}
@@ -13,9 +16,6 @@
<updated>{{ last_updated | date(format="%+") }}</updated>
<id>{{ feed_url | safe }}</id>
{%- for page in pages %}
- {% if page.permalink is containing("/food/") %}
- {% continue %}
- {% endif %}
<entry xml:lang="{{ page.lang }}">
<title>{{ page.title }}</title>
<published>{{ page.date | date(format="%+") }}</published>