hugo-theme-hyde-hyde/layouts/index.html
2018-07-16 13:22:00 +10:00

29 lines
No EOL
902 B
HTML

{{ define "header" -}}
{{ partial "header.html" . }}
{{- end }}
{{ define "content" -}}
<div class="posts">
{{ range (where .Data.Pages "Type" "not in" (slice "about" "portfolio")).GroupBy "Section" -}}
{{ range .Pages }}
<div class="post">
<span class="list__title--big">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>{{ if .Draft }}<sup> <i class="fas fa-pen-square fa-xs"></i></sup>{{ end }}
</span>
<span class="title__date">
<i class="fas fa-calendar-alt"></i> {{ .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") }}
</span>
{{ .Summary }}
{{ if .Truncated -}}
<div class="read-more-link">
<a href="{{ .RelPermalink }}">Read More…</a>
</div>
{{- end }}
</div>
{{- end -}}
{{- end }}
</div>
{{- end }}
{{ define "footer" -}}
{{- end }}