2021-08-23 21:59:02 +02:00
|
|
|
{{ define "main" }}
|
2019-04-01 10:00:48 +02:00
|
|
|
|
2019-03-31 14:32:06 +02:00
|
|
|
<article class="post-single">
|
2021-08-20 13:21:20 +02:00
|
|
|
<header class="post-title">
|
2021-09-04 00:33:47 +02:00
|
|
|
<p>
|
2022-02-12 20:01:09 +01:00
|
|
|
{{ if .Date }}
|
2021-09-04 00:33:47 +02:00
|
|
|
<time>{{ .Date | time.Format ":date_medium" }}</time>
|
2022-02-12 20:01:09 +01:00
|
|
|
{{ end }}
|
2021-08-20 13:21:20 +02:00
|
|
|
{{ if or .Params.Author site.Author.name }}
|
|
|
|
<span>{{ .Params.Author | default site.Author.name }}</span>
|
|
|
|
{{ end }}
|
2021-09-04 00:33:47 +02:00
|
|
|
</p>
|
2021-08-20 13:21:20 +02:00
|
|
|
<h1>{{ .Title }}</h1>
|
2018-01-08 17:28:39 +01:00
|
|
|
</header>
|
2021-08-20 13:21:20 +02:00
|
|
|
<section class="post-content">{{ .Content }}</section>
|
|
|
|
|
2021-08-23 21:59:02 +02:00
|
|
|
<!-- Post Tags -->
|
2021-08-20 13:21:20 +02:00
|
|
|
{{ if .Params.tags }}
|
|
|
|
<footer class="post-tags">
|
2021-08-23 21:59:02 +02:00
|
|
|
{{ range .Params.tags }} {{ $href := print (absURL "tags/") (urlize .) }}
|
2021-08-20 13:21:20 +02:00
|
|
|
<a href="{{ $href }}">{{ . }}</a>
|
|
|
|
{{ end }}
|
2018-01-08 17:28:39 +01:00
|
|
|
</footer>
|
2021-08-20 13:21:20 +02:00
|
|
|
{{ end }}
|
|
|
|
|
2021-08-23 21:59:02 +02:00
|
|
|
<!-- Post Nav -->
|
|
|
|
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}<!---->
|
2021-08-20 13:21:20 +02:00
|
|
|
{{ if and (gt (len $pages) 1) (in $pages . ) }}
|
|
|
|
<nav class="post-nav">
|
|
|
|
{{ with $pages.Next . }}
|
|
|
|
<a class="prev" href="{{ .Permalink }}"><span>←</span><span>{{ .Name }}</span></a>
|
2021-08-23 21:59:02 +02:00
|
|
|
{{ end }} {{ with $pages.Prev . }}
|
2021-08-20 13:21:20 +02:00
|
|
|
<a class="next" href="{{ .Permalink }}"><span>{{ .Name }}</span><span>→</span></a>
|
|
|
|
{{ end }}
|
|
|
|
</nav>
|
|
|
|
{{ end }}
|
|
|
|
|
2021-08-23 21:59:02 +02:00
|
|
|
<!-- Disqus -->
|
2021-08-20 13:21:20 +02:00
|
|
|
{{ if and site.DisqusShortname (not (eq .Params.comments false)) }}
|
|
|
|
<div id="disqus_thread" class="post-comments"></div>
|
2018-05-04 19:57:25 +02:00
|
|
|
<script>
|
2021-08-20 13:21:20 +02:00
|
|
|
var disqusShortname = '{{ site.DisqusShortname }}';
|
|
|
|
var script = document.createElement('script');
|
|
|
|
script.src = 'https://' + disqusShortname + '.disqus.com/embed.js';
|
|
|
|
script.setAttribute('data-timestamp', +new Date());
|
|
|
|
document.head.appendChild(script);
|
2018-05-04 19:57:25 +02:00
|
|
|
</script>
|
2021-08-20 13:21:20 +02:00
|
|
|
{{ end }}
|
2018-01-08 17:28:39 +01:00
|
|
|
</article>
|
2019-04-01 10:00:48 +02:00
|
|
|
|
2021-08-23 21:59:02 +02:00
|
|
|
{{ end }}
|