summaryrefslogtreecommitdiff
path: root/layouts/_default/list.html
blob: b33da49ebce2b15538661af827ab6890379006f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{ define "head" }}
<link rel="stylesheet" href='{{ "css/list.css" | absURL }}'>
{{ end }}

{{ define "main" }}
{{ if .Content }}
<main id="main" class="post">
  <article class="content">
    {{ .Content }}
  </article>
{{ else }}
<main id="main">
  <ul>
    {{ range .Pages }}
    <li>
      <a href="{{ .RelPermalink }}">{{ .Title }}</a> - <i class="item-date">{{ .PublishDate.Format "January 2, 2006"}}</i>
    </li>
    {{ end }}
  </ul>
{{ end}}
</main>
{{ end }}