yequari.com/layouts/partials/index-latest-blogs.html

10 lines
345 B
HTML

<h3>Latest Blog Posts</h3>
<ul>
{{ range first 3 (where .Site.RegularPages.ByDate.Reverse "Section" "blog") }}
<li>
<time class="dt-published" datetime="{{ .PublishDate }}">{{ .PublishDate.Format "01/02/06" }}</time>
<a class="title u-url p-name" href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>