2020-01-12 07:51:51 +01:00
|
|
|
{{ define "main" }}
|
2020-06-24 21:21:59 +02:00
|
|
|
{{ if .Menus }}
|
|
|
|
<nav class="post-navigation">
|
|
|
|
{{ range .Menus }}
|
2023-08-12 10:28:38 +02:00
|
|
|
<a href="{{ .ConfiguredURL | absLangURL }}" title="{{ .Title }}">{{ .Name | markdownify }}</a>
|
2020-06-24 21:21:59 +02:00
|
|
|
{{ end }}
|
|
|
|
</nav>
|
|
|
|
{{ end }}
|
2021-10-10 14:07:21 +02:00
|
|
|
|
2021-01-20 20:12:50 +01:00
|
|
|
<article class="post h-entry">
|
2021-12-19 12:10:10 +01:00
|
|
|
<div class="post-header">
|
|
|
|
<header>
|
2023-08-12 10:28:38 +02:00
|
|
|
<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title " " | markdownify }}</h1>
|
2021-07-08 22:32:45 +02:00
|
|
|
|
2021-12-19 12:10:10 +01:00
|
|
|
{{ partial "post-language-switcher.html" . }}
|
|
|
|
</header>
|
|
|
|
</div>
|
2023-07-04 21:29:38 +02:00
|
|
|
{{ partial "toc.html" .}}
|
2021-01-20 20:12:50 +01:00
|
|
|
<div class="content e-content">
|
2020-02-02 16:01:10 +01:00
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
2021-07-09 18:00:52 +02:00
|
|
|
{{ partial "post-info.html" . }}
|
2020-01-12 07:51:51 +01:00
|
|
|
</article>
|
2020-06-07 13:20:40 +02:00
|
|
|
|
2022-02-18 10:29:49 +01:00
|
|
|
{{ if gt .Site.Params.readNextPosts 0 }}
|
|
|
|
{{ $related := .Site.RegularPages.Related . | first .Site.Params.readNextPosts }}
|
|
|
|
{{ with $related }}
|
|
|
|
<h3 class="read-next-title">{{ i18n "readNext" }}</h3>
|
|
|
|
<ul class="read-next-posts">
|
|
|
|
{{ range . }}
|
|
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
2020-06-24 21:21:59 +02:00
|
|
|
{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
|
2021-07-09 18:00:52 +02:00
|
|
|
{{ partial "post-pagination.html" . }}
|
2020-06-07 13:20:40 +02:00
|
|
|
{{ end }}
|
|
|
|
|
2022-04-12 19:11:58 +02:00
|
|
|
{{ if not .Params.disableComments }}
|
|
|
|
{{ partial "comments.html" . }}
|
2020-01-21 19:57:57 +01:00
|
|
|
{{ end }}
|
2021-10-10 14:07:21 +02:00
|
|
|
{{ end }}
|