blog/themes/quadrant/layouts/_default/home.html

13 lines
477 B
HTML

{{ define "main" }}
{{ .Content }}
{{ range site.RegularPages }}
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<h2 class="post-title">
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a><br />
<time class="post-time" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
</h2>
<p class="post-summary">{{ .Summary | strings.Truncate 200 }}</p>
{{ end }}
{{ end }}