From 8703499c0bc54c18774f18e5e09fdfe8682fb82e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Sun, 10 Apr 2022 19:39:52 +0300 Subject: [PATCH] =?UTF-8?q?Socky=20pry=C4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/_default/single.html | 11 +++++++++++ layouts/home.html | 2 ++ 2 files changed, 13 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e9cea46..1801990 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,4 +1,5 @@ {{ define "main" -}} +

{{ .Title }}

{{ with .Params.tagline }}{{ . }}{{ end }} @@ -13,11 +14,21 @@ {{ .Content }}
+ {{ $Site := .Site }} + {{ with .Params.elements }} + {{ range . }} + {{ partial . ( dict "Site" $Site ) }} + {{ end }} + {{ end }} + + {{ partial "tags.html" . }} + {{/* {{ if (and (ne .Params.DisableShare true) (ne .Params.disable_share true)) -}} {{ partial "share.html" . }} {{- end }} + */}} {{ if (and .Site.DisqusShortname (ne .Params.DisableComments true) (ne .Params.disable_comments true)) -}}
diff --git a/layouts/home.html b/layouts/home.html index cab91f8..580947c 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -23,9 +23,11 @@ {{ partial "tags.html" . }} + {{/* {{ if (and (ne .Params.DisableShare true) (ne .Params.disable_share true)) -}} {{ partial "share.html" . }} {{- end }} + */}} {{ if (and .Site.DisqusShortname (ne .Params.DisableComments true) (ne .Params.disable_comments true)) -}}