gcg-website/layouts/_default/single.html

36 lines
1.3 KiB
HTML
Raw Permalink Normal View History

2022-03-18 13:35:57 +01:00
{{ define "main" }}
2023-09-23 22:40:36 +02:00
<section class="section" data-pagefind-body>
2022-03-18 13:35:57 +01:00
<div class="container">
<div class="row">
<div class="col-lg-8">
<img src="{{ .Params.image | relURL }}" alt="{{ .Title }}" class="img-fluid w-100 mb-4">
<div class="d-flex flex-wrap gap-2 justify-content-between">
<div class="text-body-secondary">
<span class="fw-bold me-1">Geschrieben von:</span>
{{ partial "authors" (dict "Site" .Site "author" .Params.author )}}
2022-03-18 13:35:57 +01:00
</div>
<div class="text-body-secondary">
<span class="fw-bold me-1">Datum:</span>
{{ time.Format "02. Jan 2006" .PublishDate }}
</div>
<div class="text-body-secondary">
2023-06-21 17:58:49 +02:00
<span class="fw-bold me-1">Kategorien:</span>
2023-05-29 16:22:34 +02:00
{{ range $index, $elements := .Params.categories }}
{{ if ne $index 0 }}, {{ end }}
2023-06-21 17:58:49 +02:00
<a href="{{ `categories/` | relURL }}{{ . | urlize | lower }}">{{ . | title }}</a>
{{ end }}
2022-03-18 13:35:57 +01:00
</div>
</div>
<div class="border-bottom my-4"></div>
<div class="content text-justify mb-4">
{{ .Content }}
</div>
2022-03-18 13:35:57 +01:00
</div>
{{ partial "blog-sidebar.html" . }}
</div>
</div>
</section>
{{ end }}