2023-08-16 18:47:14 +00:00
{{ define "main" }}
{{- $ageDays := div (sub now.Unix .Date.Unix) 86400 -}}
< header class = "content__header" >
2024-01-20 22:21:09 +00:00
< div class = "frontmatter" >
< hr >
< table class = "frontmatter" >
< tr > < td class = "label" > title:< / td > < td class = "title" > {{ .Title | markdownify }}< / td > < / tr >
{{- if .Params.date }}
{{- $postDate := .Date.Format "2006-01-02" }}
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
< tr > < td class = "label" > posted:< / td > < td class = "content" > {{ $postDate }}< / td > < / tr >
{{- if ne $postDate $updateDate }}
< tr > < td class = "label" > updated:< / td > < td class = "content" > {{ $updateDate }}< / td > < / tr >
{{ end }}
{{ end }}
{{- with .Params.tags }}{{- $tagCount := len . }}
< tr class = "frontmatter_tags" > < td > tags:< / td > < td > {{- if gt $tagCount 5 }}< details > < summary > See all {{ $tagCount }} tags...< / summary > {{- end }}[" < a href = "/tags" > all< / a > " {{- range . }}{{- $tag := urlize . }}{{ if $tag }}, {{ end }}" < a href = '{{ absLangURL (printf "tags/%s" $tag) }}' > {{ . }}< / a > " {{- end }}]{{- if gt $tagCount 5 }}< / details > {{- end }}< / td > < / tr >
{{- end }}
< / table >
< hr >
< / div >
2023-08-16 18:47:14 +00:00
< / header >
{{- with .Param "lastmod" -}}
{{- $ageDays = div (sub now.Unix .Unix) 86400 -}}
{{- end -}}
{{- if and (gt $ageDays 365) (not .Params.timeless) -}}
< br >
< div class = "notice note" >
< p class = "first notice-title" > < span class = "icon-notice baseline" > < svg > < use href = "#note-notice" > < / use > < / svg > < / span > Technology keeps moving but this post has not.< / p >
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.
< / div >
{{- end -}}
< div class = "content__body" >
{{ .Content }}
< / div >
2024-01-20 15:15:36 +00:00
2023-08-21 21:42:59 +00:00
{{- $showComments := true }}
{{- if eq .Site.Params.comments false }}
{{- $showComments = false }}
{{- else if eq .Params.comments false }}
{{- $showComments = false }}
{{- end }}
{{- if ne $showComments false }}
2024-01-20 15:15:36 +00:00
< hr >
2024-01-22 03:58:39 +00:00
{{- $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) }}
2024-04-27 16:55:43 +00:00
< span class = "post_kudos" > < button class = "tinylytics_kudos" > < / button > < / span >
2024-01-20 15:15:36 +00:00
{{- end }}
2024-04-27 16:55:43 +00:00
{{- $emailReplies := true }}
{{- if eq .Site.Params.emailReplies false }}
{{- $emailReplies = false }}
{{- else if eq .Params.emailReplies false }}
{{- $emailReplies = false }}
{{- end }}
{{- if and (eq .Site.Params.comments true) (ne $emailReplies false) }}
2024-04-27 19:22:41 +00:00
< span class = "post_email_reply" > < a href = "mailto:blogreply-{{ .Title | truncate 40 | urlize}}@runtimeterror.dev?Subject=Re: {{ .Title }}" > 📧 Reply by email< / a > < / span >
2024-04-27 16:55:43 +00:00
{{- end }}
2024-04-28 03:42:51 +00:00
< br > < details class = "comments_widget" > < summary > Comments< / summary >
2023-08-21 21:42:59 +00:00
{{- partial "comments" . }}
2024-04-27 16:55:43 +00:00
< / details >
2023-08-21 21:42:59 +00:00
{{- end }}
2023-08-16 18:47:14 +00:00
< footer class = "content__footer" > < / footer >
{{ end }}