Files
markusgraf_ch/layouts/blog/list.html
T
gurixandClaude Opus 4.5 803bd79dc8 feat: add bilingual blog post about digital media literacy for children
Add new blog post "Ein alter Laptop, Linux und Pi-hole: Digitale
Medienkompetenz für Kinder" in German and English, covering setting up
a child's first computer with Ubuntu and Pi-hole, open source philosophy,
and the balance between protection and freedom.

Also adds i18n support for localized month names in date formatting
across blog templates.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 16:43:58 +01:00

46 lines
1.3 KiB
HTML

{{ define "main" }}
<div class="container py-5">
<div class="row">
<div class="col-lg-8 mx-auto">
<header class="mb-5">
<h1>{{ .Title }}</h1>
{{ if .Description }}
<p class="lead text-muted">{{ .Description }}</p>
{{ end }}
</header>
<div class="blog-list">
{{ range .Pages }}
<article class="mb-5 pb-5 border-bottom">
<header class="mb-3">
<h2 class="h3">
<a href="{{ .RelPermalink }}" class="text-decoration-none">{{ .Title }}</a>
</h2>
<time datetime="{{ .Date.Format "2006-01-02" }}" class="text-muted">
{{ .Date.Day }}. {{ i18n (printf "month_%d" .Date.Month) }} {{ .Date.Year }}
</time>
</header>
{{ if .Description }}
<p class="lead">{{ .Description }}</p>
{{ else if .Summary }}
<div class="summary">
{{ .Summary }}
</div>
{{ end }}
<a href="{{ .RelPermalink }}" class="btn btn-outline-primary">
{{ if eq $.Language.Lang "de" }}
Weiterlesen
{{ else }}
Read more
{{ end }}
</a>
</article>
{{ end }}
</div>
</div>
</div>
</div>
{{ end }}