diff options
author | Dan McGee <dan@archlinux.org> | 2010-07-06 20:16:10 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-07-06 20:16:10 -0500 |
commit | ad162d74db6718b2ba7dd1ab2e1f21847a7c7744 (patch) | |
tree | b67f56a8d113b88108ac6155fcccad2300d08de8 /templates/news/view.html | |
parent | 5b2861f1f02d9bfbc189402f35687093c7322aa9 (diff) |
Format all news items using markdown
Implements FS#13741. A preview function is also added so working with news
items is easier to make sure you get the formatting right.
This will result in some older news items looking a bit weird if they didn't
put linebreaks in all the right places, we can fix a few of these as we
notice them.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/news/view.html')
-rw-r--r-- | templates/news/view.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/news/view.html b/templates/news/view.html index 1b82bc08..64c510e3 100644 --- a/templates/news/view.html +++ b/templates/news/view.html @@ -1,8 +1,9 @@ {% extends "base.html" %} +{% load markup %} {% block title %}Arch Linux - News: {{ news.title }}{% endblock %} {% block content %} -<div id="news-article" class="box"> +<div class="news-article box"> <h2>News: {{ news.title }}</h2> @@ -17,7 +18,7 @@ <p class="article-info">{{ news.postdate }} - {{ news.author.get_full_name }}</p> - {{ news.content|safe|linebreaks }} + <div>{{ news.content|markdown }}</div> </div> {% endblock %} |