all repos — blog @ c56431c0568b58f5c10a8c61e978841b3726c54e

Code and content for 5ika.ch

layouts/index.html (view raw)

 1{{ define "main" }}
 2<div>{{ .Content }}</div>
 3<div>
 4  <h1>Blog</h1>
 5  <ul class="links-list">
 6    {{ range first 10 (where site.RegularPages "Section" "posts") }}
 7    <li>
 8      <a href="{{ .RelPermalink }}"
 9        >{{ .Date | time.Format "Jan 2006" }} - {{ .LinkTitle }}</a
10      >
11    </li>
12    {{ end }}
13  </ul>
14</div>
15{{end}}