{{ 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 }}
{{- $showComments := true }} {{- if eq .Site.Params.comments false }} {{- $showComments = false }} {{- else if eq .Params.comments false }} {{- $showComments = false }} {{- end }} {{- if ne $showComments false }}
{{- $showKudos := true }} {{- if eq .Site.Params.kudos false }} {{- $showKudos = false }} {{- else if eq .Params.kudos false }} {{- $showKudos = false }} {{- end }} {{- if and (eq .Site.Params.analytics true) (ne $showKudos false) }} Enjoyed this post?  {{- end }} {{- partial "comments" . }} {{- end }} {{ end }}