Added a field to blog model to have a edit changelog
This commit is contained in:
parent
5496624871
commit
d54c73e562
2 changed files with 8 additions and 0 deletions
|
@ -27,3 +27,7 @@ width = 1/2
|
||||||
[fields.body]
|
[fields.body]
|
||||||
label = Body
|
label = Body
|
||||||
type = markdown
|
type = markdown
|
||||||
|
|
||||||
|
[fields.edit_comment]
|
||||||
|
label = Edit comment
|
||||||
|
type = markdown
|
||||||
|
|
|
@ -13,6 +13,10 @@
|
||||||
{{ post.body }}
|
{{ post.body }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
{% if not from_index and post.edit_comment %}
|
||||||
|
<h3>Edits</h3>
|
||||||
|
{{ post.edit_comment }}
|
||||||
|
{% endif %}
|
||||||
<hr class="light">
|
<hr class="light">
|
||||||
</article>
|
</article>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue