You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
687 B
17 lines
687 B
{{ 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 }}
|