Jacky Zhao
2023-04-06 e482fa10970fd6a0c1c0ec836db84ba4187bc8f7
layouts/partials/recent.html
@@ -1,12 +1,12 @@
<div class="content-list">
  <h2>Recent Notes</h2>
  <h2>{{ i18n "recent_notes" }}</h2>
  <!--
  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/
  -->
  {{$notes := .Site.RegularPages}}
  {{$notes := .Site.RegularPages.ByLastmod.Reverse}}
  {{partial "page-list.html" (first 3 $notes)}}
</div>