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

25 lines
658 B
HTML
Raw Normal View History

2018-01-24 09:42:50 +00:00
{{ define "header" -}}
{{ partial "header.html" . }}
{{- end }}
{{ define "content" -}}
<div class="posts">
2018-02-03 08:35:10 +00:00
{{ range where .Data.Pages "Type" "posts" }}
2018-01-25 09:57:13 +00:00
<div class="post">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
2018-03-29 23:49:07 +00:00
<span class="post-date">
2018-03-30 07:09:06 +00:00
{{- .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") -}}
2018-03-29 23:49:07 +00:00
</span>
2018-01-25 09:57:13 +00:00
{{ .Summary }}
{{ if .Truncated }}
<div class="read-more-link">
<a href="{{ .RelPermalink }}">Read More…</a>
</div>
{{ end }}
</div>
2018-01-24 09:42:50 +00:00
{{- end }}
</div>
2017-09-07 19:41:16 +00:00
{{- end }}
2018-01-24 09:42:50 +00:00
{{ define "footer" -}}
2017-09-07 19:41:16 +00:00
{{- end }}