diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/feeds/news_description.html | 7 | ||||
-rw-r--r-- | templates/news/add.html | 2 | ||||
-rw-r--r-- | templates/news/view.html | 2 | ||||
-rw-r--r-- | templates/public/index.html | 3 |
4 files changed, 7 insertions, 7 deletions
diff --git a/templates/feeds/news_description.html b/templates/feeds/news_description.html index c428b9e..a1e6446 100644 --- a/templates/feeds/news_description.html +++ b/templates/feeds/news_description.html @@ -1,4 +1,3 @@ -{% autoescape off %} -{{obj.author.get_full_name}} wrote:<br /> -{{ obj.content }} -{% endautoescape %} +{% load markup %} +<p>{{obj.author.get_full_name}} wrote:</p> +{{ obj.content|markdown }} diff --git a/templates/news/add.html b/templates/news/add.html index 51f4d30..48b013f 100644 --- a/templates/news/add.html +++ b/templates/news/add.html @@ -30,7 +30,7 @@ <div class="news-article box" style="display:none;"> <h2>News Preview: <span id="previewtitle"></span></h2> - <div id="previewdata"></div> + <div id="previewdata" class="article-content"></div> </div> {% load cdn %}{% jquery %} <script type="text/javascript"> diff --git a/templates/news/view.html b/templates/news/view.html index 64c510e..a7c25a4 100644 --- a/templates/news/view.html +++ b/templates/news/view.html @@ -18,7 +18,7 @@ <p class="article-info">{{ news.postdate }} - {{ news.author.get_full_name }}</p> - <div>{{ news.content|markdown }}</div> + <div class="article-content">{{ news.content|markdown }}</div> </div> {% endblock %} diff --git a/templates/public/index.html b/templates/public/index.html index 4f248fd..19b43c6 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 --> |