Navigation "zurück" angepasst + Webp-Ressourcen angepasst

This commit is contained in:
2025-05-05 21:34:02 +02:00
parent c88cf623f0
commit 229f78a7ee
3 changed files with 3 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
{{ if .Cover }} {{ if .Cover }}
<img class="hero" src="{{ .Cover }}" alt=""> <img class="hero" src="{{ .Cover }}" alt="">
{{ end }} {{ end }}
<p><a href="/">Zurück zur Übersicht</a></p>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02.01.2006" }}</time> <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02.01.2006" }}</time>

View File

@@ -6,7 +6,7 @@
{{ if .Cover }} {{ if .Cover }}
<img src="{{ .Cover }}" alt=""> <img src="{{ .Cover }}" alt="">
{{ else }} {{ else }}
<img src="/static/img/placeholder.png" alt=""> <img src="/static/img/placeholder.webp" alt="">
{{ end }} {{ end }}
<div class="card-content"> <div class="card-content">
<h2>{{ .Title }}</h2> <h2>{{ .Title }}</h2>

View File

@@ -2,6 +2,7 @@
{{ define "body" }} {{ define "body" }}
<article> <article>
<p><a href="/">Zurück zur Übersicht</a></p>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<div class="article-content">{{ .Body }}</div> <div class="article-content">{{ .Body }}</div>
<p><a href="/">Zurück</a></p> <p><a href="/">Zurück</a></p>