summaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-02-06 21:38:34 +0100
committermms <michal@sapka.me>2024-02-06 21:38:34 +0100
commit01401a7bec03cb30696e7981f81c138d63331e98 (patch)
treec517337174cd3adf0e2e14f7635a82634676c68a /layouts/_default/single.html
parent86d5ececb0ec89b18168f68834d39ac7277e5043 (diff)
todo and lastmod
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html34
1 files changed, 22 insertions, 12 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 5886803..ee09c88 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,30 +1,40 @@
{{ define "main" }}
<article>
- <br>
- {{- if not (eq .Page.Type "special") }}
- {{ if in .Page.Params.category "star-trek" }}
- Earthdate
- {{ end }}
- <time datetime="{{.PublishDate.Format "2006-01-02" }}">
- {{ .PublishDate.Format "January 2, 2006" }}
- </time>
- {{- end }}
-
{{ .Page.Content }}
{{- if not (in .Params.category "pages") }}
+
{{- if not (eq .Page.Type "special") }}
+
+ {{ $pubdate := .PublishDate.Format "January 2, 2006" }}
+ {{ $lastmod := .Lastmod.Format "January 2, 2006" }}
+
+ <div class="publish-date">
+ {{ if eq $pubdate $lastmod }}
+ Published:
+ <time datetime="{{.PublishDate.Format "2006-01-02" }}">{{ $pubdate }}</time>
+ {{ else }}
+
+ ; updated:
+ <time datetime="{{.Lastmod.Format "2006-01-02" }}">{{ $lastmod }}</time>
+ {{ end }}
+ </div>
+
+
+
<aside>
- <h3>Author</h3>
+ <h2>Author</h2>
<p>
Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. This website is not dedicated to any particular one thing. Instead, I write whatever interests me most at the moment. No content here is auto-generated, so any bugs, problems, or controversies are entirely on me!
</p>
<p>
- I don't have any commenting system, but comments over <a href="/about#contact">email</a> are more than welcome!
+ I don't have any commenting system, but comments over <a href="/me/contact">email</a> are more than welcome!
</p>
</aside>
{{- end }}
+
</article>
{{ end }}
+
{{ end }}