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 }}
2024-04-26 14:53:59 +00:00
< h1 > {{ .Title | markdownify }}{{ if eq .Kind "term" }} < a target = "_blank" href = "{{ .Permalink }}feed.xml" aria-label = "Category RSS" > < i class = "fa-solid fa-square-rss" > < / i > < / a > < / h1 >
2024-05-29 20:21:45 +00:00
{{ if eq .Title "/Slashes" }}< i > My collection of < a target = "_blank" title = "what's a slashpage?" href = "https://slashpages.net" > slashpages< / a > .< / i > < hr > {{ else }}{{ with .Description }}< i > {{ . }}< / i > < hr > {{ else }}< br > {{ end }}{{ end }}
2024-01-19 04:08:45 +00:00
{{ end }}{{ end }}
2023-08-22 21:27:50 +00:00
{{ .Content }}
< / header >
2024-01-18 22:06:53 +00:00
{{- if eq .Kind "taxonomy" }}
{{- if eq .Title "Tags" }}
2024-01-19 02:43:00 +00:00
< div class = "tagsArchive" >
2024-01-18 22:06:53 +00:00
{{- range $key, $value := .Site.Taxonomies }}
{{- $slicedTags := ($value.ByCount) }}
{{- range $slicedTags }}
{{- if eq $key "tags"}}
2024-01-19 02:43:00 +00:00
< div > < a href = '/{{ $key }}/{{ (replace .Name "#" "%23") | urlize }}/' title = "{{ .Name }}" > {{ .Name }}< / a > < sup > {{ .Count }}< / sup > < / div >
2024-01-18 22:06:53 +00:00
{{- end }}
{{- end }}
{{- end }}
2024-01-19 02:43:00 +00:00
< / div >
2024-01-18 22:06:53 +00:00
{{- else }}
2024-01-19 04:08:45 +00:00
{{- range .Pages.ByDate.Reverse }}
{{- $postDate := .Date.Format "2006-01-02" }}
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
< article class = "post" >
< header class = "post__header" >
< h1 > < a href = "{{ .Permalink }}" > {{ .Title | markdownify }}< / a > < / h1 >
< p class = "post__meta" >
< span class = "date" > ["{{- $postDate }}"{{- if ne $postDate $updateDate }}, "{{ $updateDate }}"{{ end }}]< / span >
< / p >
< / header >
< section class = "post__summary" >
{{ .Description }}
< / section >
< hr >
< / article >
2024-01-18 22:06:53 +00:00
{{ end }}
{{- end }}
2023-12-22 23:12:18 +00:00
{{- else }}
2024-05-29 20:21:45 +00:00
{{- if eq .Title "/Slashes" }}
{{- $sortedSlashes := sort $pages "Title" }}
{{- range $sortedSlashes }}
{{- $postDate := .Date.Format "2006-01-02" }}
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
< article class = "post" >
< header class = "post__header" >
< h1 > < a href = "{{ .Permalink }}" > {{ .Title | markdownify }}< / a > < / h1 >
< p class = "post__meta" >
< span class = "date" > ["{{- $postDate }}"{{- if ne $postDate $updateDate }}, "{{ $updateDate }}"{{ end }}]< / span >
< / p >
< / header >
< section class = "post__summary" >
{{ .Description }}
< / section >
< hr >
< / article >
{{- end }}
{{- else }}
{{- range (.Paginate $pages).Pages }}
2024-01-18 22:06:53 +00:00
{{- $postDate := .Date.Format "2006-01-02" }}
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
< article class = "post" >
< header class = "post__header" >
< h1 > < a href = "{{ .Permalink }}" > {{ .Title | markdownify }}< / a > < / h1 >
< p class = "post__meta" >
< span class = "date" > ["{{- $postDate }}"{{- if ne $postDate $updateDate }}, "{{ $updateDate }}"{{ end }}]< / span >
< / p >
< / header >
< section class = "post__summary" >
2024-05-29 20:06:16 +00:00
{{if .Description }}{{ .Description }}{{ else }}{{ .Summary }}{{ end }}
2024-01-18 22:06:53 +00:00
< / section >
2024-01-19 04:08:45 +00:00
< hr >
2024-01-18 22:06:53 +00:00
< / article >
2024-05-29 20:21:45 +00:00
{{- end }}
{{- template "_internal/pagination.html" . }}
2024-01-18 22:06:53 +00:00
{{- end }}
2023-12-22 23:12:18 +00:00
{{- end }}