hugo-theme-hyde-hyde/layouts/index.html

35 lines
1 KiB
HTML
Raw Normal View History

2018-01-24 09:42:50 +00:00
{{ define "header" -}}
{{ partial "header.html" . }}
{{- end }}
{{ define "content" -}}
2018-07-20 20:32:00 +00:00
<div class="post-list">
2018-07-10 01:41:30 +00:00
{{ range (where .Data.Pages "Type" "not in" (slice "about" "portfolio")).GroupBy "Section" -}}
{{ range .Pages }}
2018-07-20 20:32:00 +00:00
<div class="post-list__item">
<span class="item__title--big">
2018-07-16 03:22:00 +00:00
<a href="{{ .RelPermalink }}">{{ .Title }}</a>{{ if .Draft }}<sup> <i class="fas fa-pen-square fa-xs"></i></sup>{{ end }}
2018-03-29 23:49:07 +00:00
</span>
2018-07-20 20:32:00 +00:00
<span class="item__date">
{{ .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") }}
2018-07-16 03:22:00 +00:00
</span>
{{ .Summary }}
{{ if .Truncated -}}
2018-01-25 09:57:13 +00:00
<div class="read-more-link">
<a href="{{ .RelPermalink }}">Read More…</a>
</div>
2018-07-10 01:41:30 +00:00
{{- end }}
2018-01-25 09:57:13 +00:00
</div>
2018-07-10 01:41:30 +00:00
{{- end -}}
{{- end }}
</div>
2017-09-07 19:41:16 +00:00
{{- end }}
2018-01-24 09:42:50 +00:00
{{ define "footer" -}}
2018-07-27 01:04:16 +00:00
{{ if .Site.GoogleAnalytics -}}
<!-- Google Analytics -->
{{- template "_internal/google_analytics_async.html" . -}}
{{- end }}
{{ partial "footer/font-awesome-js.html" . }}
{{- end }}