aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.html
blob: d29c86ae90e98b4e076bfec70188f74807af4aeb44c92417725b73bddcfb637f (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>
  {{- if .Site.Params.indexTitle }}
  <h1>{{ .Site.Params.indexTitle }}</h1>
  {{- end }}
  {{- if .Site.Params.indexIntro }}
  <p>{{ .Site.Params.indexIntro }}</p>
  {{- end }}
  <h2>Navigation Links</h2>
  <nav>
    <ul class="list">
    {{- range .Site.Menus.main }}
	<li class="list__item">{{ emojify ":link:" | safeHTML }}&nbsp;<a class="link" href="{{ .URL }}" rel="noreferrer">{{ .Name }}</a></li>
    {{- end }}
    </ul>
  </nav>
  <h2>Journal Entries</h2>
  {{ range (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse -}}
  {{ partial "metadata.html" . -}}
  {{ end -}}
</main>
{{- end }}