ar.falsy.cat/layouts/partials/recent.html

13 lines
373 B
HTML
Raw Normal View History

2022-05-24 05:25:13 +00:00
<div class="content-list">
<h2>{{ i18n "recent_notes" }}</h2>
2022-05-24 05:25:13 +00:00
<!--
You can also configure this to find related pages!
All you need to pass into the "page-list.html" partial
is a collection of pages.
https://gohugo.io/content-management/related/
-->
2023-02-13 00:46:11 +00:00
{{$notes := .Site.RegularPages.ByLastmod.Reverse}}
2023-02-24 03:03:46 +00:00
{{partial "page-list.html" (first 10 $notes)}}
2022-05-24 05:25:13 +00:00
</div>