From a706f10387c20b90effa11a5f3dc8eb330703378 Mon Sep 17 00:00:00 2001 From: Djordje Atlialp Date: Thu, 2 Jul 2020 15:56:40 +0200 Subject: [PATCH] Repect comments variable in posts --- layouts/posts/single.html | 231 ++++++++++++++++++++++---------------- 1 file changed, 134 insertions(+), 97 deletions(-) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index f9741bb..3f0a759 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,103 +1,140 @@ {{ define "main" }} -
+
- - {{- if .Site.DisqusShortname }} -
- {{ template "_internal/disqus.html" . }} -
- {{- end }} -
+
+

+ {{ .Title | markdownify }} +

+ + {{- if .Params.toc }} +
+ +
+ {{- end }} + + {{ with .Params.Cover }} + + {{ end }} + +
+ {{ .Content }} +
+
+ +
+ + + + {{- if .Site.Params.EnableSharingButtons }} +
+ + {{- end }} + + {{ if and (not $.Site.Params.DisableReadOtherPosts) (or .NextInSection .PrevInSection) }} + + {{ end }} + + + {{ if .Site.DisqusShortname }} + {{ if not (eq .Params.Comments "false") }} +
+ {{ template "_internal/disqus.html" . }} +
+ {{ end }} + {{ end }} + +
{{ end }}