2023-08-22 21:27:50 +00:00
{{ $pages := .Pages }}
{{ if .IsHome }}
{{ $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ end }}
< header class = "content__header" >
{{ if .IsHome }}
2023-08-23 13:58:31 +00:00
< h1 > {{ site.Params.indexTitle | markdownify }}< / h1 >
2023-08-22 21:27:50 +00:00
{{ else }}
< h1 > {{ .Title | markdownify }}< / h1 >
{{ end }}
{{ .Content }}
< / header >
{{ range $pages }}
2023-08-28 18:48:46 +00:00
{{- $postDate := .Date.Format "2006-01-02" }}
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
2023-08-22 21:27:50 +00:00
< article class = "post" >
< header class = "post__header" >
< h1 > < a href = "{{ .Permalink }}" > {{ .Title | markdownify }}< / a > < / h1 >
< p class = "post__meta" >
2023-08-29 14:51:34 +00:00
< span class = "date" > < i class = "fa-regular fa-note-sticky" > < / i > {{ $postDate }}{{- if ne $postDate $updateDate }} < i class = "fa-regular fa-pen-to-square" > < / i > {{ $updateDate }}{{ end }}< / span >
2023-08-22 21:27:50 +00:00
< / p >
< / header >
< section class = "post__summary" >
{{ .Summary }}
< / section >
< br >
< / article >
{{ end }}