2021-01-03 14:33:26 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="{{ .Site.LanguageCode }}" dir="ltr">
|
|
|
|
|
|
|
|
{{ partial "head.html" . }}
|
|
|
|
|
|
|
|
<body class="single-body">
|
2022-07-07 14:03:11 +02:00
|
|
|
|
|
|
|
<main class="">
|
|
|
|
<!-- -->
|
2021-01-03 14:33:26 +01:00
|
|
|
{{ partial "nav-bar.html" . }}
|
|
|
|
|
2022-07-07 14:03:11 +02:00
|
|
|
<article class="content side-text-padding {{ if ne .Params.dropcap false }}dropcase{{ end }}">
|
2021-01-03 14:33:26 +01:00
|
|
|
<header class="post-header">
|
|
|
|
<h1 class="post-title">{{ .Title }}</h1>
|
|
|
|
{{ if isset .Params "date" }}<p class="post-date">Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>{{ end }}
|
|
|
|
</header>
|
|
|
|
{{ with .Resources.GetMatch "featuredImage" -}}
|
|
|
|
<picture class="post-figure">
|
|
|
|
{{ with $.Resources.GetMatch (replace (.Title) (path.Ext (.Title)) ".webp") -}}
|
|
|
|
<source srcset="{{ .Permalink }}" type="image/webp">
|
|
|
|
{{- end }}
|
|
|
|
{{ $featured := .Resize "800x Lanczos" }}
|
|
|
|
<source srcset="{{ $featured.Permalink }}">
|
|
|
|
<img src="{{ $featured.Permalink }}" {{ with .Params.description -}} alt="{{ . }}" {{- end }}>
|
|
|
|
</picture>
|
|
|
|
{{- end }}
|
|
|
|
{{ if .Params.toc -}}
|
|
|
|
<h2>Contents</h2>
|
|
|
|
{{ .TableOfContents }}
|
|
|
|
{{- end }}
|
|
|
|
{{ .Content }}
|
|
|
|
</article>
|
|
|
|
</main>
|
2022-07-18 01:37:50 +02:00
|
|
|
<nav class="end-nav card-container card">
|
2021-01-03 14:33:26 +01:00
|
|
|
{{ with .PrevInSection }}
|
|
|
|
{{ .Render "li-next" }}
|
|
|
|
{{ end }}
|
|
|
|
</nav>
|
|
|
|
{{ partial "footer.html" . }}
|
|
|
|
{{ partial "scripts.html" . }}
|
|
|
|
</body>
|
|
|
|
</html>
|