style updates & first article
Website / Website veröffentlichen (push) Successful in 17s

This commit is contained in:
fte
2026-08-18 18:01:56 +02:00
parent e782c96eb8
commit 63748cde60
148 changed files with 11498 additions and 69 deletions
+10 -2
View File
@@ -17,7 +17,7 @@
<br>
<section class="mb-4 text-lg">
<h4 id="date" class="flex flex-row items-center"><span class="icon-access_time text-2xl mr-2"></span>
{{ .Date.Format "2006/01/02" }} </h4>
{{ .Date.Format "02.01.2006" }} </h4>
{{ if .Params.author }}
<h4 class="flex flex-row items-center"><span class="icon-person text-2xl mr-2"></span>{{.Params.author}}
</h4>
@@ -34,8 +34,16 @@
{{ end }}
</section>
{{ if .Params.image }}
<img class="my-4" src="{{ .Params.image | absURL }}">
{{ $image := .Resources.GetMatch .Params.image }}
{{ if $image }}
<!-- wenn Bild im Artikelordner -->
<img class="my-4" src="{{ $image.Permalink }}">
{{ else }}
<!-- falls Bild im static-Ordner oder extern -->
<img class="my-4" src="{{ .Params.image | absURL }}">
{{ end }}
{{ end }}
<div class="content text-white-custom header-green-custom md:prose-lg lg:prose-xl max-w-none py-1">{{.Content}}</div>
<hr class="py-4">
{{- with .Site.Params.disqusShortname }}