Fork of @spf13's port of Mdo's excellent theme to Hugo https://brendan.abolivier.bzh/

123456789101112131415161718
  1. {{ define "main" -}}
  2. <div class="posts">
  3. {{ range .Site.RegularPages -}}
  4. <article class="post">
  5. <h1 class="post-title">
  6. <a href="{{ .Permalink }}">{{ .Title }}</a>
  7. </h1>
  8. <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
  9. {{ .Description }}
  10. {{ if .Truncated }}
  11. <div class="read-more-link">
  12. <a href="{{ .RelPermalink }}">Read More…</a>
  13. </div>
  14. {{ end }}
  15. </article>
  16. {{- end }}
  17. </div>
  18. {{- end }}