hugo-theme-anubis2/layouts/_default/single.html
Maksim Iakunin 0dbddf0e2d
#103: extracting disqus code to separate file layouts/partials/disqus.html.
It'll give all the opportunities to override this partial on the client-side.
2021-10-10 15:07:21 +03:00

35 lines
999 B
HTML

{{ define "main" }}
{{ if .Menus }}
<nav class="post-navigation">
{{ range .Menus }}
<a href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a>
{{ 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" . }}
</header>
<div class="content e-content">
{{ .Content }}
</div>
{{ partial "post-info.html" . }}
</article>
{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
{{ partial "post-pagination.html" . }}
{{ end }}
{{ if .Site.DisqusShortname }}
{{ partial "disqus.html" . }}
{{ end }}
{{ if .Site.Params.UtterancesRepo }}
{{ partial "utterances.html" . }}
{{ end }}
{{ end }}