Initial commit

This commit is contained in:
Tyler Hale 2024-01-31 15:06:47 -07:00
parent 29c198826a
commit ba13221167
Signed by: Tyler
GPG key ID: C7CC4B910D88EF96
26 changed files with 181 additions and 14 deletions

View file

@ -0,0 +1,36 @@
{{ define "title"}}
{{ .Title }} | {{ .Site.Params.author.name }}
{{ end }}
{{ define "main" }}
<div class="postWrapper">
<h1>{{ .Title }}</h1>
{{ if .Site.Params.showMetadata | default true }}
<section class="postMetadata">
<dl>
{{ with .GetTerms "tags" }}
{{ partial "taxonomy/tags.html" . }}
{{ end }}
{{ with .GetTerms "authors" }}
{{ partial "taxonomy/authors.html" . }}
{{ end }}
{{ with .GetTerms "categories" }}
{{ partial "taxonomy/categories.html" . }}
{{ end }}
{{ if .Site.Params.published | default true }}
<dt>{{ i18n "published" }}</dt>
{{ $formattedDate := .Date.Format "2006-01-02" }}
<dd><time datetime="{{ $formattedDate }}">{{ .Date | time.Format ":date_long" }}</time></dd>
{{ end }}
{{ if .Site.Params.readingTime | default true }}
<dt>{{ i18n "reading_time" }}</dt>
<dd>{{ i18n "reading_time_desc" .ReadingTime }}</dd>
{{ end }}
</dl>
</section>
{{ end }}
<div>
{{ .Content }}
</div>
</div>
{{ end }}