From d54c73e562743b125da4a730bf88704d150f5e70 Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Sun, 23 Apr 2017 22:24:12 +0200 Subject: [PATCH] Added a field to blog model to have a edit changelog --- models/blog-post.ini | 4 ++++ templates/macros/blog.html | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/models/blog-post.ini b/models/blog-post.ini index 15afbd9..2368813 100644 --- a/models/blog-post.ini +++ b/models/blog-post.ini @@ -27,3 +27,7 @@ width = 1/2 [fields.body] label = Body type = markdown + +[fields.edit_comment] +label = Edit comment +type = markdown diff --git a/templates/macros/blog.html b/templates/macros/blog.html index 131311f..1174154 100644 --- a/templates/macros/blog.html +++ b/templates/macros/blog.html @@ -13,6 +13,10 @@ {{ post.body }} {% endif %} + {% if not from_index and post.edit_comment %} +

Edits

+ {{ post.edit_comment }} + {% endif %}
{% endmacro %}