about summary refs log tree commit diff
path: root/users/fcuny/notes/layouts/index.html
blob: a340d3d7ae745d9962a5f183b76544c5d1e99c5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{{ define "main" }}

<article>

<h1>{{ .Site.Home.Title }}</h1>

<p>This is my collection of notes.</p>

  <h2>Notes</h2>
  <ul>
  {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
  {{ range $pages }}
  {{- $fmt := "2006-01-02" }}
  <li class="post-permalink"><span class="post-date" >{{ .Date.Format $fmt | safeHTML }}</span>, <a href="{{ .Permalink }}">{{ .Title }}</a></li>
  {{ end }}
  </ul>

</article>

{{ end }}