bcarlin.net/layouts/blog/single.html

31 lines
823 B
HTML
Raw Normal View History

2025-06-07 02:33:02 +02:00
{{ define "main" }}
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
2025-06-20 02:33:45 +02:00
{{ $dateHuman := .Date | time.Format ":date_short" }}
2025-06-07 02:33:02 +02:00
<article class="h-entry">
<header>
2025-06-20 02:33:45 +02:00
{{ with .GetTerms "categories" }}
<p class="category">
{{ range . }}
<a class="p-category" rel="tag" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ break }}
{{ end }}
</p>
{{ end }}
<h1 class="p-name">
{{ .Title }}
</h1>
2025-06-07 02:33:02 +02:00
<div class="metadata">
<p>
2025-06-20 02:33:45 +02:00
{{ T "posted" }}
2025-06-07 02:33:02 +02:00
<time class="dt-published" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
</p>
{{ partial "tags.html" . }}
</div>
</header>
<section class="e-content">
{{ .Content }}
</section>
</article>
{{ end }}