Added a field to blog model to have a edit changelog

This commit is contained in:
Felipe M 2017-04-23 22:24:12 +02:00
parent 5496624871
commit d54c73e562
Signed by: fmartingr
GPG key ID: 716BC147715E716F
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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 %}