diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e9cea46ac18c5b3db1e26988639cd9e755f26e28..18019908172b55c2182b5ba0c9a11ebbcc8e0c6a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,4 +1,5 @@ {{ define "main" -}} +<!-- single.html --> <div class="post"> <h1 class="title">{{ .Title }}</h1> {{ with .Params.tagline }}<span class="tagline">{{ . }}</span>{{ end }} @@ -13,11 +14,21 @@ {{ .Content }} </div> + {{ $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)) -}} <div class="comments"> diff --git a/layouts/home.html b/layouts/home.html index cab91f807143994da71650b443eabb8e98cf8a75..580947c2224b4dda77769c66a7bfe0aaae138bc8 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)) -}} <div class="comments">