summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-06-21 20:56:32 +0200
committerChristian Grothoff <christian@grothoff.org>2021-06-21 20:56:32 +0200
commit381a8bdc522f8a9be9d84c27ddacb0ab31a85009 (patch)
treed51d75f02b3515b25d0f0e48be2416bb93dbdd1f /template
parentcdb0ab1e401d7ca2d956494dbb50fbc81449427d (diff)
downloadwww-381a8bdc522f8a9be9d84c27ddacb0ab31a85009.tar.gz
www-381a8bdc522f8a9be9d84c27ddacb0ab31a85009.tar.bz2
www-381a8bdc522f8a9be9d84c27ddacb0ab31a85009.zip
fix rss renderer
Diffstat (limited to 'template')
-rw-r--r--template/index.html.j22
-rw-r--r--template/news/index.html.j24
-rw-r--r--template/rss.xml.j22
3 files changed, 4 insertions, 4 deletions
diff --git a/template/index.html.j2 b/template/index.html.j2
index a7a291f5..6f43bff2 100644
--- a/template/index.html.j2
+++ b/template/index.html.j2
@@ -57,7 +57,7 @@
</div>
{% for item in newsdata[:3] %}
<div class="col-12">
- <a href="{{ url_localized(item['page']) }}" title="{{ item['date']}}">{{ item['date'] }}: {{ item['title'] }}</a>
+ <a href="{{ url_localized('news/' + item['page']) }}" title="{{ item['date']}}">{{ item['date'] }}: {{ item['title'] }}</a>
</div>
{% endfor %}
</div>
diff --git a/template/news/index.html.j2 b/template/news/index.html.j2
index eb9edd6c..5c5cf284 100644
--- a/template/news/index.html.j2
+++ b/template/news/index.html.j2
@@ -32,8 +32,8 @@
</p>
</header>
<p class="item-abstract">
- {{ get_abstract(item['page'], 500) }} <br/>
- [<a href="{{ url_localized(item['page']) }}" title="{{ item['date']}}">{{ _("read more") }}</a>]
+ {{ get_abstract('news/' + item['page'], 500) }} <br/>
+ [<a href="{{ url_localized('news/' + item['page']) }}" title="{{ item['date']}}">{{ _("read more") }}</a>]
</p>
</section>
</li>
diff --git a/template/rss.xml.j2 b/template/rss.xml.j2
index 3ffe6d38..482a0896 100644
--- a/template/rss.xml.j2
+++ b/template/rss.xml.j2
@@ -36,7 +36,7 @@
<description>
<![CDATA[
<article>
- {{ get_abstract(newspostitem['page'], 1000) }}
+ {{ get_abstract('news/' + newspostitem['page'], 1000) }}
</article>
]]>
</description>