set up code formatter
This commit is contained in:
@@ -1 +1,5 @@
|
|||||||
{{ define "main"}} {{ range .Pages }} {{ .Title }} {{ end }} {{ end }}
|
{{ define "main" }}
|
||||||
|
{{ range .Pages }}
|
||||||
|
{{ .Title }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|||||||
@@ -1,21 +1,32 @@
|
|||||||
{{ define "main"}}
|
{{ define "main" }}
|
||||||
<article class="prose prose-lg prose-h2:text-neutral-600 prose-h2:text-4xl mt-10">
|
<article
|
||||||
<div class="text-xs md:text-sm mb-4">{{ .Date | time.Format ":date_long" }}</div>
|
class="prose prose-lg prose-h2:text-neutral-600 prose-h2:text-4xl mt-10"
|
||||||
<h1 class="text-neutral-600">{{ .Title }}</h1>
|
>
|
||||||
{{ .Content }}
|
<div class="text-xs md:text-sm mb-4">
|
||||||
{{- partial "post-gallery.html" . -}}
|
{{ .Date | time.Format ":date_long" }}
|
||||||
<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>
|
||||||
<div>
|
<h1 class="text-neutral-600">{{ .Title }}</h1>
|
||||||
{{ if .NextPage }}
|
{{ .Content }}
|
||||||
<a class="underline text-tertiary-600 hover:text-tertiary-500 visited:text-primary-400" href="{{ .NextPage.Permalink}}">Nächster: {{ .NextPage.Title }}</a>
|
{{- partial "post-gallery.html" . -}}
|
||||||
{{ end }}
|
<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>
|
||||||
</div>
|
</article>
|
||||||
</article>
|
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user