Re-enable markdown safe mode
[pgweb/local.git] / templates / news / newsarchive.html
blobb687c9ddd98f08100b66e15f02386dd489677c62
1 {%extends "base/page.html"%}
2 {%load markup%}
3 {%block title%}News Archive{%if tag%} - {{tag.name}}{%endif%}{%endblock%}
4 {%block contents%}
5 <h1>News Archive{%if tag%} - {{tag.name}}{%endif%} <i class="far fa-newspaper"></i></h1>
7 <p>
8 {%for t in newstags%}<span class="newstag"><a class="btn btn-primary" href="/about/newsarchive/{{t.urlname}}/">{{t.name}}</a></span> {%endfor%}
9 </p>
11 {%for obj in news %}
12 <h2 class="news"><a href="/about/news/{{obj.id}}/">{{obj.title}}</a></h2>
13 <div class="newsdate">Posted on <strong>{{obj.displaydate}}</strong>{% if obj.org.name != '_migrated' %} by {{ obj.org.name }}{% endif %}</div>
14 {{obj.content|markdown:"safe"|striptags|truncatewords:20}}
15 <p><a href="/about/news/{{obj.id}}/">Read more...</a></p>
16 {%endfor%}
17 <p><a href="/account/news/new/">Submit news</a></p>
18 {%endblock%}