about summary refs log tree commit diff stats
path: root/themes/xmin/layouts/_default/list.html
blob: 6780bbae4767ae20737f5f92209b0c03cc8d16f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{{ define "main" }}

{{ if not .IsHome }}
<h1>{{ .Title | markdownify }}</h1>
{{ else }}
<h1>{{ .Site.Title | markdownify }}</h1>
{{ end }}


{{ .Content }}

<ul>
  {{ $pages := .Pages }}
  {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
  {{ range (where $pages "Section" "!=" "") }}
  <li class="h-entry">
    <span class="date dt-published">{{ .Date.Format "2006-01-02" }}</span>
    <a class="u-url p-name" href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
  </li>
  {{ end }}
</ul>

{{- end }}