Initial commit

This commit is contained in:
Nox Sluijtman 2023-08-10 03:39:50 +02:00
commit 07a9f6baba
13 changed files with 875 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{{ define "main" }}
<div class="main-head">
<h1> {{ .Title | markdownify }} </h1>
</div>
{{ if .Params.image }}
<details open="">
<summary>Image</summary>
<figure class="postImage">
<img src="{{ .Params.image }}" alt="{{ .Params.imageDescription }}">
<figcaption>{{ .Params.imageDescription }}</figcaption>
</figure>
</details>
{{ end }}
<article class="post-content">
{{- with .Content -}}
{{ . | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1} <a href="#${2}" class="anchor" ariaLabel="Anchor">λ</a> ${3}` | safeHTML }}
{{- end -}}
</article>
{{ end }}