hugo-graceful-simplicity/layouts/index.html

44 lines
1.2 KiB
HTML
Raw Normal View History

2017-08-05 00:16:16 +00:00
{{ partial "header.html" . }}
{{ if .Site.Params.contact }}
2017-08-05 00:16:16 +00:00
<h2>Contact</h2>
{{ range $label, $value := .Site.Params.contact }}
{{ $label }}: <span class="monospace">{{ $value }}</span>
<br>
{{ end }}
{{ end }}
<h2>Writings</h2>
<ul>
{{ range first .Site.Params.frontPagePosts .Data.Pages }}
2017-08-05 00:16:16 +00:00
{{ if eq .Type "post" }}
<li><a href="{{ .Permalink }}">{{ .Title }}
{{ if .Site.Params.frontShowDatesOnPosts }} ({{ .Date.Format "Jan 2, 2006" }}){{ end }}
</a></li>
2017-08-05 00:16:16 +00:00
{{ end }}
{{ end }}
</ul>
{{ if gt (len (where (where .Site.Pages "Type" "post") "Kind" "page")) .Site.Params.frontPagePosts }}
<a href="{{ .Site.BaseURL }}/post/">List of all writings</a>
{{ end }}
2017-08-05 00:16:16 +00:00
<h2>Pages</h2>
<ul>
{{ range .Data.Pages }}
{{ if eq .Type "page" }}
2017-08-05 01:04:07 +00:00
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
2017-08-05 00:16:16 +00:00
{{ end }}
{{ end }}
</ul>
{{ if .Site.Params.sites }}
<h2>Where to find me on the internet</h2>
2017-08-05 00:16:16 +00:00
<ul>
{{ range .Site.Params.sites }}
<li><a href="{{ .link }}">{{ .label }}</a></li>
{{ end }}
2017-08-05 00:16:16 +00:00
</ul>
{{ end }}
2017-08-05 00:16:16 +00:00
{{ partial "footer.html" . }}