You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2023/08/17 06:39:08 UTC
[groovy-website] branch asf-site updated: sort blog index by last updated
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 177342b sort blog index by last updated
177342b is described below
commit 177342b1378981f135f91b687ebd7a0ddd62aab8
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Aug 17 16:38:58 2023 +1000
sort blog index by last updated
---
site/src/site/pages/blogs.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/site/src/site/pages/blogs.groovy b/site/src/site/pages/blogs.groovy
index 79bef14..a38936a 100644
--- a/site/src/site/pages/blogs.groovy
+++ b/site/src/site/pages/blogs.groovy
@@ -48,7 +48,7 @@ layout 'layouts/main.groovy', true,
}
},
mainContent: contents {
- def sorted = list.sort { e -> e.value.revisionInfo.date }
+ def sorted = list.sort { e -> e.value.attributes.updated ?: e.value.revisionInfo.date }
div(id: 'content', class: 'page-1') {
div(class: 'row') {
div(class: 'row-fluid') {