Website-Redesign/layouts/_default/list.html

16 lines
544 B
HTML
Raw Normal View History

2020-08-24 01:48:03 -05:00
{{ define "main" }}
<h2>
{{ $title := .Title }}
{{ $section := .Section | humanize }}
{{ if and (ne $section $title) (ne $section "Tags") (ne $title (printf "%ss" $section)) }}
2020-08-24 01:48:03 -05:00
{{ $section }}:
{{ end }}
{{ if and (eq $section "Tags") (ne $section $title) }}Tag: #{{ end }}{{ $title }}
2020-08-24 01:48:03 -05:00
</h2>
<ul>
{{ range .Pages }}
<li><span class="date">{{ .Date.Format "2006-01-02" }}</span> <a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}