aboutsummaryrefslogtreecommitdiff
path: root/layouts/home.html
blob: 5a8368b6a982c011109125e599814f770bea0cd919a44e07238419d0d2362f9f (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
{{ 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 }}
  {{ 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 }}