set up code formatter

This commit is contained in:
2024-04-13 16:13:04 +02:00
parent 63ebec979b
commit 68aded4d12
2 changed files with 34 additions and 19 deletions
+5 -1
View File
@@ -1 +1,5 @@
{{ define "main"}} {{ range .Pages }} {{ .Title }} {{ end }} {{ end }}
{{ define "main" }}
{{ range .Pages }}
{{ .Title }}
{{ end }}
{{ end }}
+29 -18
View File
@@ -1,21 +1,32 @@
{{ define "main"}}
<article class="prose prose-lg prose-h2:text-neutral-600 prose-h2:text-4xl mt-10">
<div class="text-xs md:text-sm mb-4">{{ .Date | time.Format ":date_long" }}</div>
<h1 class="text-neutral-600">{{ .Title }}</h1>
{{ .Content }}
{{- partial "post-gallery.html" . -}}
<div class="flex flex-row justify-between mt-8">
<div>
{{ if .PrevPage }}
<a class="underline text-tertiary-600 hover:text-tertiary-500 visited:text-primary-400" href="{{ .PrevPage.Permalink}}">Vorheriger: {{ .PrevPage.Title }}</a>
{{ end }}
{{ define "main" }}
<article
class="prose prose-lg prose-h2:text-neutral-600 prose-h2:text-4xl mt-10"
>
<div class="text-xs md:text-sm mb-4">
{{ .Date | time.Format ":date_long" }}
</div>
<div>
{{ if .NextPage }}
<a class="underline text-tertiary-600 hover:text-tertiary-500 visited:text-primary-400" href="{{ .NextPage.Permalink}}">Nächster: {{ .NextPage.Title }}</a>
{{ end }}
<h1 class="text-neutral-600">{{ .Title }}</h1>
{{ .Content }}
{{- partial "post-gallery.html" . -}}
<div class="flex flex-row justify-between mt-8">
<div>
{{ if .PrevPage }}
<a
class="underline text-tertiary-600 hover:text-tertiary-500 visited:text-primary-400"
href="{{ .PrevPage.Permalink }}"
>Vorheriger: {{ .PrevPage.Title }}</a
>
{{ end }}
</div>
<div>
{{ if .NextPage }}
<a
class="underline text-tertiary-600 hover:text-tertiary-500 visited:text-primary-400"
href="{{ .NextPage.Permalink }}"
>Nächster: {{ .NextPage.Title }}</a
>
{{ end }}
</div>
</div>
</div>
</article>
</article>
{{ end }}