aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-05-11 18:48:56 +0200
committerFlorian Dold <florian@dold.me>2021-05-11 18:48:56 +0200
commit3d1c49b2a32c4dba24edead1fdae5c50fe8dbf0b (patch)
tree06f125e65ce564329995d2ab3b7ef5f7b0575df9
parent592abb88fe273ca1a98a35a49266ae081498e6cc (diff)
downloadwww-3d1c49b2a32c4dba24edead1fdae5c50fe8dbf0b.tar.gz
www-3d1c49b2a32c4dba24edead1fdae5c50fe8dbf0b.zip
fix RSS generation, include full body
-rw-r--r--common/header.j2.inc2
m---------inc0
-rw-r--r--template/rss.xml.j26
3 files changed, 4 insertions, 4 deletions
diff --git a/common/header.j2.inc b/common/header.j2.inc
index 9d797fed..b97c9eec 100644
--- a/common/header.j2.inc
+++ b/common/header.j2.inc
@@ -55,7 +55,7 @@
55 <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> 55 <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
56 <![endif]--> 56 <![endif]-->
57 57
58 <link rel="alternate" type="application/rss+xml" title="GNUnet.org rss" href="{{ url_localized('news/rss.xml') }}" /> 58 <link rel="alternate" type="application/rss+xml" title="GNUnet.org rss" href="{{ url_localized('rss.xml') }}" />
59 59
60 <!-- opengraph --> 60 <!-- opengraph -->
61 <!-- 61 <!--
diff --git a/inc b/inc
Subproject 9e9363ec2797fcb51f998ce6e388eb9877e8788 Subproject ebfd9c60d0e59f6373309ac96d8abf6094ceefb
diff --git a/template/rss.xml.j2 b/template/rss.xml.j2
index 3ffe6d38..d0197c00 100644
--- a/template/rss.xml.j2
+++ b/template/rss.xml.j2
@@ -35,9 +35,9 @@
35 <title>{{ newspostitem['title']|e }}</title> 35 <title>{{ newspostitem['title']|e }}</title>
36 <description> 36 <description>
37 <![CDATA[ 37 <![CDATA[
38 <article> 38 {% filter extract_body %}
39 {{ get_abstract(newspostitem['page'], 1000) }} 39 {% include (newspostitem['page'] + ".j2") %}
40 </article> 40 {% endfilter %}
41 ]]> 41 ]]>
42 </description> 42 </description>
43 </item> 43 </item>