diff options
author | Óscar Nájera <hello@oscarnajera.com> | 2018-07-15 15:05:51 +0200 |
---|---|---|
committer | Óscar Nájera <hello@oscarnajera.com> | 2018-07-15 15:16:16 +0200 |
commit | d074c8eff1bbbc00b35b2bbb29fe7c3790de14ea (patch) | |
tree | 755c66440724b91b319f9b5b390df99805b42cc5 | |
parent | af462ff2aabf2b326de9e12cc6c28dfe743ef024 (diff) | |
download | hugo-minimalist-theme-d074c8eff1bbbc00b35b2bbb29fe7c3790de14ea.tar.gz hugo-minimalist-theme-d074c8eff1bbbc00b35b2bbb29fe7c3790de14ea.tar.bz2 hugo-minimalist-theme-d074c8eff1bbbc00b35b2bbb29fe7c3790de14ea.zip |
visibility of tags and disqus box
-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 }} |