diff options
author | Florian Dold <florian@dold.me> | 2021-05-07 13:23:13 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-05-07 13:23:13 +0200 |
commit | aaf8e383ff6017e8cb57d1070c0042b68bdc026d (patch) | |
tree | 9b5895a5a46f9e199410ab91b857f9c08c1b7da7 /template | |
parent | efc06787a90652112e1446e349c72d2c30c7dd7a (diff) | |
download | www-aaf8e383ff6017e8cb57d1070c0042b68bdc026d.tar.gz www-aaf8e383ff6017e8cb57d1070c0042b68bdc026d.tar.bz2 www-aaf8e383ff6017e8cb57d1070c0042b68bdc026d.zip |
use generic site generation, use teaser helpers
Diffstat (limited to 'template')
-rw-r--r-- | template/news/index.html.j2 | 4 | ||||
-rw-r--r-- | template/rss.xml.j2 | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/template/news/index.html.j2 b/template/news/index.html.j2 index 207fa80..65b44ad 100644 --- a/template/news/index.html.j2 +++ b/template/news/index.html.j2 @@ -29,8 +29,8 @@ </p> </header> <p class="item-abstract"> - {{ item['abstract'] }} <br/> - [<a href="{{ item['page'] }}" title="{{ item['date']}}">{{ _("read more") }}</a>] + {{ get_abstract(item['page'], 1000) }} <br/> + [<a href="{{ url(item['page']) }}" title="{{ item['date']}}">{{ _("read more") }}</a>] </p> </section> </div> diff --git a/template/rss.xml.j2 b/template/rss.xml.j2 index 872e551..9b58fb7 100644 --- a/template/rss.xml.j2 +++ b/template/rss.xml.j2 @@ -36,7 +36,7 @@ <description> <![CDATA[ <article> - {{ newspostitem['content'] }} + {{ get_abstract(newspostitem['page'], 1000) }} </article> ]]> </description> |