summaryrefslogtreecommitdiff
path: root/layouts/_default/list.html
blob: 45c8631c315747a79e0057f93f8b598baac17cc4 (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 class="link" href="{{ .RelPermalink }}">{{ .Title }} <i class="item-date"> --- {{ .PublishDate.Format "January 2, 2006"}}</i></a>
    </li>
    {{ end }}
  </ul>
{{ end}}
</main>
{{ end }}