diff options
Diffstat (limited to 'template')
-rw-r--r-- | template/index.html.j2 | 2 | ||||
-rw-r--r-- | template/news/index.html.j2 | 4 | ||||
-rw-r--r-- | template/rss.xml.j2 | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/template/index.html.j2 b/template/index.html.j2 index 4114785f..f1b832eb 100644 --- a/template/index.html.j2 +++ b/template/index.html.j2 | |||
@@ -26,7 +26,7 @@ | |||
26 | <h2>{{ _("Latest news") }}</h2> | 26 | <h2>{{ _("Latest news") }}</h2> |
27 | <p> | 27 | <p> |
28 | {% for item in newsdata[:3] %} | 28 | {% for item in newsdata[:3] %} |
29 | <a class="link" href="{{ url_localized(item['page']) }}" title="{{ item['date']}}">{{ item['date'] }}: {{ item['title'] }}</a><br/> | 29 | <a class="link" href="{{ url_localized('news/' + item['page']) }}" title="{{ item['date']}}">{{ item['date'] }}: {{ item['title'] }}</a><br/> |
30 | {% endfor %} | 30 | {% endfor %} |
31 | <br/> | 31 | <br/> |
32 | <a class="link" href="{{ url_localized('news/index.html')}}">{{ _("Older news entries") }}</a> | 32 | <a class="link" href="{{ url_localized('news/index.html')}}">{{ _("Older news entries") }}</a> |
diff --git a/template/news/index.html.j2 b/template/news/index.html.j2 index abd20092..004d46e7 100644 --- a/template/news/index.html.j2 +++ b/template/news/index.html.j2 | |||
@@ -32,8 +32,8 @@ | |||
32 | </p> | 32 | </p> |
33 | </header> | 33 | </header> |
34 | <p class="item-abstract"> | 34 | <p class="item-abstract"> |
35 | {{ get_abstract(item['page'], 500) }} <br/> | 35 | {{ get_abstract('news/' + item['page'], 500) }} <br/> |
36 | [<a href="{{ url_localized(item['page']) }}" title="{{ item['date']}}">{{ _("read more") }}</a>] | 36 | [<a href="{{ url_localized('news/' + item['page']) }}" title="{{ item['date']}}">{{ _("read more") }}</a>] |
37 | </p> | 37 | </p> |
38 | </section> | 38 | </section> |
39 | </li> | 39 | </li> |
diff --git a/template/rss.xml.j2 b/template/rss.xml.j2 index d0197c00..6ee0a279 100644 --- a/template/rss.xml.j2 +++ b/template/rss.xml.j2 | |||
@@ -36,7 +36,7 @@ | |||
36 | <description> | 36 | <description> |
37 | <![CDATA[ | 37 | <![CDATA[ |
38 | {% filter extract_body %} | 38 | {% filter extract_body %} |
39 | {% include (newspostitem['page'] + ".j2") %} | 39 | {% include ('news/' + newspostitem['page'] + ".j2") %} |
40 | {% endfilter %} | 40 | {% endfilter %} |
41 | ]]> | 41 | ]]> |
42 | </description> | 42 | </description> |