2021-06-12 08:07:39 -05:00
|
|
|
<h2>
|
|
|
|
{{ $title := .Title }}
|
|
|
|
{{ $section := .Section | humanize }}
|
|
|
|
{{ if and (ne $section $title) (ne $section "Tags") (ne $title (printf "%ss" $section)) }}
|
|
|
|
{{ $section }}:
|
|
|
|
{{ end }}
|
2021-07-07 07:33:45 -05:00
|
|
|
{{ if and (eq $section "Tags") (eq $section $title) }}
|
|
|
|
{{ i18n "tagsColumn" }}
|
|
|
|
{{ else }}
|
|
|
|
{{ if and (eq $section "Tags") (ne $section $title) }}{{ i18n "tagColumn" }} #{{ end }}{{ $title }}
|
|
|
|
{{ end }}
|
2021-06-12 08:07:39 -05:00
|
|
|
</h2>
|
|
|
|
<ul class="list">
|
2021-06-16 03:57:46 -05:00
|
|
|
{{ if and (eq $section "Tags") (eq $section $title) }}
|
|
|
|
{{/* if we're in the Tags section, sort alphabetically and don't show the date */}}
|
|
|
|
{{ range (sort .Pages "Title") }}
|
|
|
|
<li>
|
|
|
|
<a href="{{ .Permalink }}">#{{ .Title }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
{{ range .Pages }}
|
|
|
|
<li>
|
2021-06-29 11:09:56 -05:00
|
|
|
<div>
|
|
|
|
<span class="date">
|
2021-07-07 07:33:45 -05:00
|
|
|
{{- partial "date.html" .Date -}}
|
2021-06-29 11:09:56 -05:00
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
|
|
|
</span>
|
|
|
|
</div>
|
2021-06-16 03:57:46 -05:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
2021-06-12 08:07:39 -05:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|