summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
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>