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