From 8a1f218a08bec69a5bb531d8c69562b5e9a3d093 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 6 May 2023 12:52:47 +0400 Subject: Added comment system Signed-off-by: Valentin Popov --- sass/_framework.scss | 2 +- templates/includes/comments.html | 1 + templates/post.html | 20 +++++++++----------- 3 files changed, 11 insertions(+), 12 deletions(-) create mode 100644 templates/includes/comments.html diff --git a/sass/_framework.scss b/sass/_framework.scss index e692dd3..99368d9 100644 --- a/sass/_framework.scss +++ b/sass/_framework.scss @@ -27,7 +27,7 @@ body { @media (max-width: 684px) { body { font-size: $font-size-base * 0.85; - padding: 4em 2em 2em 2em; + padding: 4em 1em 2em 1em; } } diff --git a/templates/includes/comments.html b/templates/includes/comments.html new file mode 100644 index 0000000..e1cd142 --- /dev/null +++ b/templates/includes/comments.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/post.html b/templates/post.html index e5d1cc7..76f15c9 100644 --- a/templates/post.html +++ b/templates/post.html @@ -1,17 +1,15 @@ {% extends 'base.html' %} {% block content %} -

{{ page.title | trim }}

+
+

{{ page.title | trim | safe }}

+
-{{ page.content | safe }} +
+ {{ page.content | safe }} +
- - Published - - | - {% set email = config.extra.author.email | trim %} - Feedback - | - Permalink - +
+ {% include 'includes/comments.html' %} +
{% endblock content %} \ No newline at end of file -- cgit v1.2.3