deinternationalisation + cleanups
All checks were successful
website-main / prod-build (push) Successful in 1m13s
website-main / test-build (push) Successful in 49s
website-main / auto-rebuild (push) Has been skipped

This commit is contained in:
2023-06-21 17:58:49 +02:00
parent e7f5024f48
commit d673039275
315 changed files with 132 additions and 382 deletions

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
<html lang="de-de">
{{- partial "head.html" . -}}
<body>
{{- partial "preloader.html" . -}}

View File

@ -3,7 +3,6 @@
alt="{{ .Title }}"></a>
<div class="card-body d-flex flex-column">
<h4 class="card-title text-truncate mt-auto"><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm text-uppercase align-self-start" data-pagefind-ignore>{{ i18n
"read_more"}}</a>
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm text-uppercase align-self-start" data-pagefind-ignore>Mehr anzeigen</a>
</div>
</div>

View File

@ -3,6 +3,6 @@
<div class="card-body">
<div class="row col-12 mb-3"><div class="col-1"><i class="mdi mdi-bookmark-outline me-2"></i></div><div class="col-11">{{ .Params.category }}</div></div>
<h4 class="card-title text-truncate"><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm text-uppercase" data-pagefind-ignore>{{ i18n "read_more"}}</a>
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm text-uppercase" data-pagefind-ignore>Mehr anzeigen</a>
</div>
</div>

View File

@ -17,6 +17,6 @@
</div>
<h4 class="card-title text-truncate"><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
<p class="card-text">{{ .Summary | truncate 100 }}</p>
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm mt-auto align-self-start" data-pagefind-ignore>{{ i18n "read_more" }}</a>
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm mt-auto align-self-start" data-pagefind-ignore>Mehr anzeigen</a>
</div>
</div>

View File

@ -6,6 +6,6 @@
<div class="row mb-2"><div class="col-1"><i class="mdi mdi-crowd"></i></div><div class="col-11">{{ .Params.class }}</div></div>
</div>
<h4 class="card-title text-truncate"><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm" data-pagefind-ignore>{{ i18n "show_more"}}</a>
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm" data-pagefind-ignore>Mehr anzeigen</a>
</div>
</div>

View File

@ -11,7 +11,7 @@
<div class="col-12">
<div class="row mb-3">
<div class="col-6 mb-md-0 text-white text-body-tertiary">
<span class="fw-bold me-1">{{ i18n "posted_by" }}:</span>
<span class="fw-bold me-1">Geschrieben von:</span>
{{ range $index, $elements := where (where .Site.RegularPages "Type" "author") "File.BaseFileName" "in" .Params.author }}
{{ if ne $index 0 }}, {{ end }}
{{ if .Params.simplified }}
@ -22,16 +22,16 @@
{{ end }}
</div>
<div class="col-6 mb-3 mb-md-0 text-body-tertiary">
<span class="fw-bold me-1">{{ i18n "date" }}:</span>
<span class="fw-bold me-1">Datum:</span>
{{ time.Format "02. Jan 2006" .PublishDate }}
</div>
</div>
<div class="row">
<div class="col-12 mb-md-0 text-body-tertiary">
<span class="fw-bold me-1">{{ i18n "category" }}:</span>
<span class="fw-bold me-1">Kategorien:</span>
{{ range $index, $elements := .Params.categories }}
{{ if ne $index 0 }}, {{ end }}
<a href="{{ `categories/` | relLangURL }}{{ . | urlize | lower }}">{{ . | title }}</a>
<a href="{{ `categories/` | relURL }}{{ . | urlize | lower }}">{{ . | title }}</a>
{{ end }}
</div>
</div>