Blog- und Veranstaltungsbereich hinzugefuegt Neuer Bereich /blog fuer Veranstaltungstipps und Neuigkeiten aus Kaufbeuren: content/blog/ (inkl. erstem Beitrag "Veranstaltungen Herbst 2026" als Page-Bundle mit Bildern), Layouts layouts/blog/ (list + single) und ein bild-Shortcode, der Bilder aus dem Bundle aufloest und eine Bildquelle anzeigt. Menueintrag "Blog" in hugo.toml, zugehoeriges Blog-CSS (und Belegungsplan-Band) in style.css. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> @
19 lines
774 B
HTML
19 lines
774 B
HTML
{{ define "main" }}
|
|
<article class="page blog-post">
|
|
<div class="container container--narrow">
|
|
<p class="blog-date">{{ .PublishDate.Format "02.01.2006" }}</p>
|
|
<h1>{{ .Title }}</h1>
|
|
{{ with .Params.bild }}
|
|
{{ $src := . }}
|
|
{{ with $.Resources.GetMatch $src }}{{ $src = .RelPermalink }}{{ end }}
|
|
<figure class="blog-hero">
|
|
<img src="{{ $src }}" alt="{{ with $.Params.bild_alt }}{{ . }}{{ else }}{{ $.Title }}{{ end }}" class="blog-hero-img">
|
|
{{ with $.Params.bild_quelle }}<figcaption class="bild-quelle">Bildquelle: {{ . | safeHTML }}</figcaption>{{ end }}
|
|
</figure>
|
|
{{ end }}
|
|
{{ .Content }}
|
|
<p class="blog-back"><a href="/blog/" class="btn btn-outline">← Zurück zur Übersicht</a></p>
|
|
</div>
|
|
</article>
|
|
{{ end }}
|