38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
{{ define "header" }}
|
|
{{ partial "header.html" . }}
|
|
{{ end }}
|
|
|
|
{{ define "content" }}
|
|
<div class="post-list">
|
|
{{ range (where .Data.Pages "Type" "not in" (slice "about" "portfolio")).GroupBy "Section" }}
|
|
{{ range .Pages }}
|
|
<div class="post-list__item">
|
|
<span class="item__title--big">
|
|
<a href="{{ .RelPermalink }}">{{ .Title }}</a>{{ if .Draft }}<sup> <i class="fas fa-pen-square fa-xs"></i></sup>{{ end }}
|
|
</span>
|
|
<span class="item__date">
|
|
{{ .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") }}
|
|
</span>
|
|
{{ if .Description }}
|
|
{{ .Description }}
|
|
{{ else }}
|
|
{{ .Summary }}
|
|
{{ end }}
|
|
{{ if .Truncated }}
|
|
<div class="read-more-link">
|
|
<a href="{{ .RelPermalink }}">Read More…</a>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ define "footer" }}
|
|
{{ if .Site.GoogleAnalytics }}
|
|
<!-- Google Analytics -->
|
|
{{ template "_internal/google_analytics_async.html" . }}
|
|
{{ end }}
|
|
{{ partial "footer/font-awesome-js.html" . }}
|
|
{{ end }}
|