2017-08-05 00:16:16 +00:00
|
|
|
{{ partial "header.html" . }}
|
|
|
|
|
2017-08-06 01:36:46 +00:00
|
|
|
{{ if .Site.Params.contact }}
|
2017-08-05 00:16:16 +00:00
|
|
|
<h2>Contact</h2>
|
2017-08-06 01:36:46 +00:00
|
|
|
{{ 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" }}
|
2017-08-06 01:36:46 +00:00
|
|
|
<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>
|
2017-08-06 01:36:46 +00:00
|
|
|
{{ 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>
|
2017-08-06 01:36:46 +00:00
|
|
|
|
|
|
|
{{ if .Site.Params.sites }}
|
|
|
|
<h2>Where to find me on the internet</h2>
|
2017-08-05 00:16:16 +00:00
|
|
|
<ul>
|
2017-08-06 01:36:46 +00:00
|
|
|
{{ range .Site.Params.sites }}
|
|
|
|
<li><a href="{{ .link }}">{{ .label }}</a></li>
|
|
|
|
{{ end }}
|
2017-08-05 00:16:16 +00:00
|
|
|
</ul>
|
2017-08-06 01:36:46 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2017-08-05 00:16:16 +00:00
|
|
|
{{ partial "footer.html" . }}
|