2023-08-28 18:48:46 +00:00
{{- $postDate := .Date.Format "2006-01-02" }}
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
{{ if or (.Params.description) (.Params.date) }}
2023-08-23 22:02:19 +00:00
{{ if .Params.description }}< p > {{ .Params.description }}< / p > {{ end }}
2023-08-22 00:54:33 +00:00
< p >
2023-08-29 21:25:35 +00:00
{{ with $postDate }}< table > < tr > < td > posted:< / td > < td > {{ . }}< / td > < / tr > {{- if ne $postDate $updateDate }}< tr > < td > updated:< / td > < td > {{ $updateDate }}< / td > < / tr > {{ end }}< / table > {{ end }}
2023-08-22 00:54:33 +00:00
< / p >
2023-08-23 00:39:37 +00:00
< p >
{{- with .Params.tags -}}
2023-08-29 21:24:41 +00:00
tags:< br >
2023-08-23 00:39:37 +00:00
{{- range . }}
{{- $tag := urlize . -}}
[< a href = '{{ absLangURL (printf "tags/%s" $tag) }}' title = "{{ . }}" > {{ . }}< / a > ]
{{- end }}
{{- end }}
< / p >
2023-08-23 21:58:49 +00:00
< hr >
2023-08-22 00:54:33 +00:00
{{ end }}
{{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) }}
< h2 > On this page< / h2 >
{{ .TableOfContents }}
2023-08-23 00:39:37 +00:00
< hr >
2023-08-22 00:54:33 +00:00
{{ end }}
{{- $posts := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{- $featured := default 8 .Site.Params.numberOfFeaturedPosts }}
{{- $featuredPosts := first $featured (where $posts "Params.featured" true)}}
{{- with $featuredPosts }}
< h2 > Featured Posts< / h2 >
< ul >
{{- range . }}
< li >
< a href = "{{ .Permalink }}" title = "{{ .Title }}" > {{ .Title | markdownify }}< / a >
< / li >
{{- end }}
< / ul >
{{- end }}