diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 74aacc0..308510f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,7 +1,7 @@ {{ define "main" }} <article> <div class="w-100 vh-50 dt bg-center cover bg-gray" - style="background-image:url({{ .Params.coverimage }})"> + style="background-image:url({{ .Params.coverimage }})"> <header class="dt pa5 mw7 center post-header white"> <h1 class="f1 lh-title"> {{ .Title }}</h1> @@ -16,15 +16,20 @@ </div> <footer class="ph3"> + {{ with .Params.tags }} <h1 class="f5 ttu black-60">Tagged in</br></h1> - {{ range .Params.tags }} - <a class="f5 link dim br1 ph3 pv2 blue dib mb2 hover-bg-black hover-white ba" href="{{ $.Site.LanguagePrefix }}/tags/{{ . | urlize }}/">{{ . }}</a> + {{ range . }} + <a class="f5 link dim br1 ph3 pv2 blue dib mb2 hover-bg-black hover-white ba" + href="{{ $.Site.LanguagePrefix }}/tags/{{ . | urlize }}/">{{ . }}</a> + {{ end }} {{ end }} </footer> </div> - <div class="mw7 center mv4"> - {{ template "_internal/disqus.html" . }} - </div> + {{ if not (eq .Params.comments false) }} + <div class="mw7 center mv4"> + {{ template "_internal/disqus.html" . }} + </div> + {{ end }} </article> {{ end }} |