diff options
author | Dan McGee <dan@archlinux.org> | 2010-07-06 20:33:03 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-07-06 20:33:03 -0500 |
commit | 7b73c0ff8c8caa546442e3e3311867f2c6159754 (patch) | |
tree | 9cce13bc2d25cc00ebb29f91ffd01fb969e7f0f9 /templates/public/index.html | |
parent | ad162d74db6718b2ba7dd1ab2e1f21847a7c7744 (diff) |
Get news markdown formatting working everywhere
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/public/index.html')
-rw-r--r-- | templates/public/index.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/public/index.html b/templates/public/index.html index 4f248fd5..19b43c66 100644 --- a/templates/public/index.html +++ b/templates/public/index.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load markup %} {% block head %} <link rel="alternate" type="application/rss+xml" title="Arch Linux News Updates" href="/feeds/news/" /> @@ -44,7 +45,7 @@ <h4><a href="{{ news.get_absolute_url }}" title="View full article: {{ news.title }}">{{ news.title }}</a></h4> <p class="timestamp">{{ news.postdate }}</p> - <p>{{ news.content|striptags|truncatewords:50 }}</p> + <div class="article-content">{{ news.content|markdown|truncatewords_html:75 }}</div> {% endfor %} </div><!-- #news --> |