include partials if they exist given theme
parent
6efca3bc62
commit
1b2d58c619
|
|
@ -11,13 +11,17 @@
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title " " }}</h1>
|
<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>
|
</header>
|
||||||
{{ partial "post-toc.html" . }}
|
{{ partial "post-toc.html" . }}
|
||||||
<div class="content e-content">
|
<div class="content e-content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
{{ partial "post-info.html" . }}
|
{{ if templates.Exists "partials/post-info.html" }}
|
||||||
|
{{ partial "post-info.html" . }}
|
||||||
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
|
{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,12 @@
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "theme-switcher.html" . }}
|
{{ if templates.Exists "partials/theme-switcher.html" }}
|
||||||
|
{{ partial "theme-switcher.html" . }}
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "h-card.html" . }}
|
{{ if templates.Exists "partials/h-card.html" }}
|
||||||
|
{{ partial "h-card.html" . }}
|
||||||
|
{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ rssLimit: 5
|
||||||
canonifyurls: true
|
canonifyurls: true
|
||||||
relativeurls: false
|
relativeurls: false
|
||||||
params:
|
params:
|
||||||
|
layout: "1"
|
||||||
toc: true
|
toc: true
|
||||||
author: bel
|
author: bel
|
||||||
email: bel@bel.bel
|
email: bel@bel.bel
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue