aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.html
blob: d49b7107c8dfd84410f03ccecb72fa310d4d8d3200f0357a9ab3ac8ecbf5df29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{{ define "main" -}}
<main>
  <h1>{{ .Site.Params.indexTitle }}</h1>
  <p>{{ .Site.Params.indexIntro }}</p>
  <h2>{{ i18n "navLinks" }}</h2>
  <nav>
    <ul class="list">
    {{- range .Site.Menus.main }}
	<li class="list__item">{{ emojify ":link:" | safeHTML }} <a class="link" href="{{ .URL }}" rel="noreferrer">{{ .Name }}</a></li>
    {{- end }}
    </ul>
  </nav>
  <h2>{{ i18n "journalEntries" }}</h2>
  {{ range (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse -}}
  {{ partial "metadata.html" . }}
  {{ end -}}
</main>
{{- end }}