forked from 00dani/lemoncurry
Enable Markdown rendering support for user notes and entry content
This commit is contained in:
parent
60cd6c911b
commit
e88b631cdb
7 changed files with 45 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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 }}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue