SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 8be9e5dc authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Make news items HTML-ready

parent 043db9ce
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div> <div>
<h5 class="text-muted mb-2">{{date}}</h5> <h5 class="text-muted mb-2">{{date}}</h5>
<div> <div>
{{blurb|slice:":90"}} (...) {{blurb|truncatechars_html:90|safe}}
<br> <br>
<a href="{% url 'news:news' %}#news_{{id}}" class="my-1 d-inline-block">Read more</a> <a href="{% url 'news:news' %}#news_{{id}}" class="my-1 d-inline-block">Read more</a>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div> <div>
<h5 class="text-muted mb-2">{{news.date|date:'j F Y'}}</h5> <h5 class="text-muted mb-2">{{news.date|date:'j F Y'}}</h5>
<div> <div>
{{news.blurb|slice:":90"}} (...) {{news.blurb|truncatechars_html:90|safe}}
<br> <br>
<a href="{% url 'news:news' %}#news_{{news.id}}" class="my-1 d-inline-block">Read more</a> <a href="{% url 'news:news' %}#news_{{news.id}}" class="my-1 d-inline-block">Read more</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment