bcarlin.net/layouts/blog/single.html

44 lines
1.2 KiB
HTML

{{ define "main" }}
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_short" }}
<article class="h-entry">
<header>
{{ 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>
<div class="metadata">
<p>
{{ T "posted" }}
<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 }}
<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>
</article>
{{ end }}