include partials if they exist given theme
This commit is contained in:
@@ -6,18 +6,22 @@
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
|
||||
|
||||
<article class="post h-entry">
|
||||
<header class="post-header">
|
||||
<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title " " }}</h1>
|
||||
|
||||
{{ partial "post-language-switcher.html" . }}
|
||||
{{ if templates.Exists "partials/theme-switcher.html" }}
|
||||
{{ partial "post-language-switcher.html" . }}
|
||||
{{ end }}
|
||||
</header>
|
||||
{{ partial "post-toc.html" . }}
|
||||
<div class="content e-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ partial "post-info.html" . }}
|
||||
{{ if templates.Exists "partials/post-info.html" }}
|
||||
{{ partial "post-info.html" . }}
|
||||
{{ end }}
|
||||
</article>
|
||||
|
||||
{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
|
||||
|
||||
Reference in New Issue
Block a user