bcarlin.net/layouts/blog/single.html

45 lines
1.2 KiB
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 . }}
2025-06-20 02:33:45 +02:00
<a class="p-category" rel="tag" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{- break }}
{{- end }}
2025-06-20 02:33:45 +02:00
</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>
{{ with .TableOfContents }}
{{- if ne . `<nav id="TableOfContents"></nav>` }}
<section class="table-of-contents">
<p>{{ T "table_of_contents" }}</p>
{{ . }}
</section>
{{- end }}
{{- end }}
2025-06-07 02:33:02 +02:00
<section class="e-content">
{{ .Content }}
</section>
<footer>
Any comment? Remark? Suggestion? <a href="mailto:{{ .Site.Params.email }}?subject=Re: {{ .Title }}">Send me an email</a>!
</footer>
2025-06-07 02:33:02 +02:00
</article>
{{ end }}