Hugo Bilberry First commit to gitea@cowbay.org
This commit is contained in:
16
themes/bilberry-hugo-theme/layouts/_default/single.html
Normal file
16
themes/bilberry-hugo-theme/layouts/_default/single.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{{ define "main" }}
|
||||
{{ .Scratch.Set "singlePage" true }} <!-- SET singlePage variable -->
|
||||
<div class="article-wrapper u-cf single">
|
||||
{{ if or (fileExists (print "layouts/partials/content-type/" .Type ".html") ) (fileExists (print "themes/bilberry-hugo-theme/layouts/partials/content-type/" .Type ".html")) }}
|
||||
{{ partial (print "content-type/" .Type) . }}
|
||||
{{ else }}
|
||||
{{ partial "content-type/article" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ if ( .Params.showComments | default true ) }}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ .Scratch.Set "singlePage" false }} <!-- RESET singlePage variable -->
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user