include partials if they exist given theme
parent
6efca3bc62
commit
1b2d58c619
|
|
@ -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") }}
|
||||
|
|
|
|||
|
|
@ -21,11 +21,15 @@
|
|||
<div class="copyright">
|
||||
<p>© {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }}<br>
|
||||
{{ i18n "powered" | humanize }} <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, {{ i18n "theme" }} <a target="_blank" rel="noopener noreferrer" href="https://github.com/mitrichius/hugo-theme-anubis">Anubis</a>.<br>
|
||||
</p>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{{ partial "theme-switcher.html" . }}
|
||||
{{ if templates.Exists "partials/theme-switcher.html" }}
|
||||
{{ partial "theme-switcher.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ partial "h-card.html" . }}
|
||||
{{ if templates.Exists "partials/h-card.html" }}
|
||||
{{ partial "h-card.html" . }}
|
||||
{{ end }}
|
||||
</footer>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ rssLimit: 5
|
|||
canonifyurls: true
|
||||
relativeurls: false
|
||||
params:
|
||||
layout: "1"
|
||||
toc: true
|
||||
author: bel
|
||||
email: bel@bel.bel
|
||||
|
|
|
|||
Loading…
Reference in New Issue