{{ define "main" }} {{- $ageDays := div (sub now.Unix .Date.Unix) 86400 -}}

{{- if .Params.date }} {{- $postDate := .Date.Format "2006-01-02" }} {{- $updateDate := .Lastmod.Format "2006-01-02" }} {{- if ne $postDate $updateDate }} {{ end }} {{ end }} {{- with .Params.tags }}{{- $tagCount := len . }} {{- end }}
title:{{ .Title | markdownify }}
posted:{{ $postDate }}
updated:{{ $updateDate }}
tags:{{- if gt $tagCount 5 }}
See all {{ $tagCount }} tags...{{- end }}["all" {{- range . }}{{- $tag := urlize . }}{{ if $tag }}, {{ end }}"{{ . }}"{{- end }}]{{- if gt $tagCount 5 }}
{{- 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 }}
{{- $reply := true }} {{- if eq .Site.Params.reply false }} {{- $reply = false }} {{- else if eq .Params.reply false }} {{- $reply = false }} {{- end }} {{- if eq $reply true }}
Enjoyed this?
{{ $kudos := resources.Get "js/kudos.js" | minify }} 📧 Reply by email {{- end }} {{ end }}