From aa5ab03d4ad6e7cb4d9efd3f9c177ebde7e4c4af Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 02 Mar 2023 17:14:29 +0000
Subject: [PATCH] docs: update to account for github changes
---
layouts/partials/recent.html | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/partials/recent.html b/layouts/partials/recent.html
index e3926c2..aadf97d 100644
--- a/layouts/partials/recent.html
+++ b/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>
--
Gitblit v1.10.0