mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-12-27 05:02:18 +00:00
37 lines
No EOL
1.2 KiB
HTML
37 lines
No EOL
1.2 KiB
HTML
{{ $pages := .Pages }}
|
|
{{ if .IsHome }}
|
|
{{ $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
|
{{ end }}
|
|
<header class="content__header">
|
|
{{ if .IsHome }}
|
|
<h1>{{ site.Params.indexTitle | markdownify }}</h1>
|
|
{{ else }}
|
|
<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 }}
|
|
{{ end }}
|
|
{{ .Content }}
|
|
</header>
|
|
|
|
{{- if ne .Title "Tags"}}
|
|
{{- range (.Paginate $pages).Pages }}
|
|
{{- $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">
|
|
{{ .Summary }}
|
|
</section>
|
|
<br>
|
|
</article>
|
|
{{ end }}
|
|
{{- template "_internal/pagination.html" . }}
|
|
{{- else }}
|
|
{{- range .Pages.ByTitle }}
|
|
[<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>]
|
|
{{- end }}
|
|
{{- end }} |