Files
markusgraf_ch/layouts/blog/single.html
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

36 lines
912 B
HTML

{{ define "main" }}
<article class="container py-5">
<div class="row">
<div class="col-lg-8 mx-auto">
<header class="mb-5">
<h1>{{ .Title }}</h1>
<div class="text-muted mb-3">
<time datetime="{{ .Date.Format "2006-01-02" }}">
{{ .Date.Day }}. {{ i18n (printf "month_%d" .Date.Month) }} {{ .Date.Year }}
</time>
</div>
{{ if .Description }}
<p class="lead">{{ .Description }}</p>
{{ end }}
</header>
<div class="blog-content">
{{ .Content }}
</div>
<footer class="mt-5 pt-4 border-top">
<a href="{{ "/blog/" | relLangURL }}" class="btn btn-outline-secondary">
{{ if eq .Language.Lang "de" }}
← Zurück zum Blog
{{ else }}
← Back to Blog
{{ end }}
</a>
</footer>
</div>
</div>
</article>
{{ end }}