diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..e4c856b --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,40 @@ +{{ define "main" }} +{{- $ageDays := div (sub now.Unix .Date.Unix) 86400 -}} +
+

{{ .Title | markdownify }}

+
+ {{ if .Params.toc }} + + {{ end }} + {{- with .Param "lastmod" -}} + {{- $ageDays = div (sub now.Unix .Unix) 86400 -}} + {{- end -}} + {{- if and (gt $ageDays 365) (not .Params.timeless) -}} +
+
+

Technology keeps moving but this post has not.

+ What you're about to read hasn't been updated in more than a year. The information may be out of date. Let me know if you see anything that needs fixing. +
+ {{- end -}} +
+ {{ .Content }} +
+ +{{ end }} + +{{define "aside" }} + {{ if .Params.description }}

{{ .Params.description }}

{{ end }} + {{ if or (.Params.author) (.Params.date) }} +

+ {{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }} + {{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }} +

+ {{ end }} + + {{ if and (.Params.toc) (.TableOfContents) }} +
+ On this page: + {{ .TableOfContents }} + {{ end }} +{{ end }}