aboutsummaryrefslogtreecommitdiff
path: root/layouts/home.html
blob: 11e43bc87799f9267d7ba992226af43964ea1d6926af1a4017c54198a793082d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{{ define "main" }}
<main class="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:" }}&nbsp;<a class="link link--internal" href="{{ .URL }}" rel="noreferrer">{{ .Name }}</a></li>
    {{ end }}
    </ul>
  </nav>
  {{ end }}
  {{ $tagList := .Site.GetPage (lower (i18n "tags")) }}
  {{ if and $tagList $tagList.Pages }}
  <h2>{{ i18n "tags" }}</h2>
  <p>{{ emojify ":link:" }}&nbsp;<a class="link link--internal" href="{{ $tagList.RelPermalink }}" rel="noreferrer">{{ i18n "tagList" }}</a></p>
  {{ end }}
  {{ with .OutputFormats.Get "Atom" }}
  <h2>{{ i18n "feeds" }}</h2>
  <p>{{ emojify ":link:" }}&nbsp;<a class="link link--internal" href="{{ .RelPermalink }}" rel="noreferrer">{{ i18n "atomFeed" }}</a></p>
  {{ end }}
  {{ with (where .Site.RegularPages "Section" "entry").ByPublishDate.Reverse }}
  <h2>{{ i18n "journalEntries" }}</h2>
  {{ range . }}
  {{ partial "metadata.html" . }}
  {{ end }}
  {{ end }}
</main>
{{ end }}