22 lines
663 B
HTML
22 lines
663 B
HTML
|
<section class="home-posts-list">
|
||
|
<h2>{{ i18n "lastPosts" }}</h2>
|
||
|
<!--
|
||
|
Ranges regular pages by the publish date, in reverse order, to display the
|
||
|
post titles of the section from most recent to older, and the category.
|
||
|
-->
|
||
|
{{ range first 5 .Site.RegularPages.ByPublishDate.Reverse }}
|
||
|
<article>
|
||
|
{{ if .Params.Announce }}
|
||
|
<a href="{{ .Permalink }}"
|
||
|
title="{{ i18n "announcedLive" }}">
|
||
|
{{- .Title -}}
|
||
|
</a> <mark>{{ i18n "announce" }}</mark>
|
||
|
{{ else }}
|
||
|
<a href="{{ .Permalink }}">
|
||
|
{{- .Title -}}
|
||
|
</a>
|
||
|
{{ end }}
|
||
|
</article>
|
||
|
{{ end }}
|
||
|
</section>
|