2023-08-22 16:27:50 -05:00
|
|
|
{{ $pages := .Pages }}
|
|
|
|
{{ if .IsHome }}
|
|
|
|
{{ $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
|
|
|
{{ end }}
|
|
|
|
<header class="content__header">
|
|
|
|
{{ if .IsHome }}
|
2023-08-23 08:58:31 -05:00
|
|
|
<h1>{{ site.Params.indexTitle | markdownify }}</h1>
|
2023-08-22 16:27:50 -05:00
|
|
|
{{ else }}
|
2023-12-22 16:30:08 -06:00
|
|
|
<h1>{{ .Title | markdownify }}{{ if eq .Kind "term" }} <a target="_blank" href="feed.xml" aria-label="Category RSS"><i class="fa-solid fa-square-rss"></i></a> </h1>{{ end }}
|
2023-08-22 16:27:50 -05:00
|
|
|
{{ end }}
|
|
|
|
{{ .Content }}
|
|
|
|
</header>
|
|
|
|
|
2023-12-22 17:12:18 -06:00
|
|
|
{{- if ne .Title "Tags"}}
|
2023-11-13 10:05:14 -06:00
|
|
|
{{- range (.Paginate $pages).Pages }}
|
2023-08-28 13:48:46 -05:00
|
|
|
{{- $postDate := .Date.Format "2006-01-02" }}
|
|
|
|
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
|
2023-08-22 16:27:50 -05:00
|
|
|
<article class="post">
|
|
|
|
<header class="post__header">
|
|
|
|
<h1><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
|
|
|
|
<p class="post__meta">
|
2023-08-29 14:48:57 -05:00
|
|
|
<span class="date">["{{- $postDate }}"{{- if ne $postDate $updateDate }}, "{{ $updateDate }}"{{ end }}]</span>
|
2023-08-22 16:27:50 -05:00
|
|
|
</p>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<section class="post__summary">
|
|
|
|
{{ .Summary }}
|
|
|
|
</section>
|
|
|
|
<br>
|
|
|
|
</article>
|
2023-11-13 10:05:14 -06:00
|
|
|
{{ end }}
|
2023-12-22 17:12:18 -06:00
|
|
|
{{- template "_internal/pagination.html" . }}
|
|
|
|
{{- else }}
|
|
|
|
{{- range .Pages.ByTitle }}
|
|
|
|
[<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>]
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|