From cbc79dbe7f97ba7dc4413c3750be87e05febeeba Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 18 Aug 2021 22:37:35 +0200 Subject: [PATCH] Rework "commenting" system Until now the commenting system was a line in a small font advising to write a mail for commenting. This change replaces the text with one that is maybe more engaging and adds a button a la Kev Quirk. See also: https://kevq.uk/adding-the-post-title-to-my-reply-by-email-button/ --- assets/css/main.scss | 12 +++++++++--- layouts/_default/single.html | 9 +++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/assets/css/main.scss b/assets/css/main.scss index 5ca20f8..7985295 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -31,6 +31,7 @@ $s-content: 1000px; $s-nav-title: 24px; $s-border: 2px; $s-border-radius: 2px; +$s-comment-margin-top: 60px; $s-font-size: 18px; $p-box-shadow: 1px 1px 5px #888; @@ -250,9 +251,14 @@ main { } } - .comment-notice { - margin-top: 50px; - font-size: 14px; + .comment { + font-size: 0.95rem; + margin-top: $s-comment-margin-top; + text-align: center; + + a { + font-size: 1.1rem; + } } #tags > a, #categories > a { diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ece5c43..ca2117a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -21,9 +21,10 @@

{{ .Content }} - {{ with .Site.Params.comment.commentmail }} -

- If you would like to comment on this post, feel free to write me a mail at {{ . }}! -

+ {{ if .Site.Params.comment.comments }} +
+

I would like to hear what you think about this post. Feel free to write me a mail!

+ Reply by mail +
{{ end }} {{ end }}