Enable Markdown rendering support for user notes and entry content

This commit is contained in:
Danielle McLean 2017-10-25 13:25:58 +11:00
parent 60cd6c911b
commit e88b631cdb
Signed by untrusted user: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
7 changed files with 45 additions and 5 deletions

View file

@ -10,6 +10,8 @@ ol.entries
margin-bottom 0
.card.h-entry
.e-content > :last-child
margin-bottom 0
.card-footer
display flex
justify-content space-evenly

View file

@ -1,7 +1,7 @@
{% load humanize %}<article class="card h-entry">
{% load humanize markdown_deux_tags %}<article class="card h-entry">
<div class="card-body">
{% if entry.name %}<h4 class="card-title p-name">{{ entry.name }}</h4>{% endif %}
<div class="e-content{% if not entry.name %} p-name{% endif %}">{{ entry.content }}</div>
<div class="e-content{% if not entry.name %} p-name{% endif %}">{{ entry.content | markdown }}</div>
</div>
<div class="card-footer">
<a class="p-author h-card" href="{{ entry.author.url }}">