From d10f0231388418717471eabacf282f225d823017 Mon Sep 17 00:00:00 2001 From: Adina Wagner Date: Mon, 20 Apr 2026 10:21:44 +0200 Subject: [PATCH 1/2] remove boilerplate 'recent' overview The 'Recent' section would show the content/samples files, pointing to documentation and other boilerplate content. I've replaced this config according to https://jpanther.github.io/congo/docs/homepage-layout/#recent-articles. I've also adjusted the description to something non-hugo related (the first sentence of the current website) as an interim improved description --- config/_default/languages.en.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml index c0a9918..f6abd1a 100644 --- a/config/_default/languages.en.toml +++ b/config/_default/languages.en.toml @@ -9,8 +9,8 @@ copyright = "© 2025 Psychoinformatics group" [params] dateFormat = "2 January 2006" - mainSections = ["samples"] - description = "A powerful, lightweight theme for Hugo built with Tailwind CSS." + mainSections = ["posts", "projects"] + description = "Research in this lab focuses on the interface of computer and information sciences, neuroscience, and psychology." [params.author] name = "Congo" -- 2.52.0 From f3267c5a0643ff7c9dfee6f5e9192f0c6ba25dd5 Mon Sep 17 00:00:00 2001 From: Adina Wagner Date: Tue, 21 Apr 2026 14:45:14 +0200 Subject: [PATCH 2/2] override recent articles partial to list term pages thanks to @msz for idea and execution steps. This commit takes the existing recent-articles.html partial from themes/congo/layout/partials and copies it to override the theme partial. Instead of listing 'Site.RegularPages' that match the configured content in the 'mainSections' configuration, it takes the more general Site.Pages, which would allow listing Term Pages (see https://gohugo.io/quick-reference/glossary/#term-page). disable recent section in configuration At its current state, it is not polished enough to enable it --- config/_default/params.toml | 2 +- layouts/_partials/recent-articles.html | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 layouts/_partials/recent-articles.html diff --git a/config/_default/params.toml b/config/_default/params.toml index 8a637eb..c4582ce 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -32,7 +32,7 @@ fingerprintAlgorithm = "sha256" [homepage] layout = "custom" # valid options: page, profile, custom - showRecent = true + showRecent = false recentLimit = 5 [article] diff --git a/layouts/_partials/recent-articles.html b/layouts/_partials/recent-articles.html new file mode 100644 index 0000000..3075037 --- /dev/null +++ b/layouts/_partials/recent-articles.html @@ -0,0 +1,6 @@ +{{ if .Site.Params.homepage.showRecent | default false }} +

{{ i18n "shortcode.recent_articles" | emojify }}

+ {{ range first .Site.Params.homepage.recentLimit (.Paginate (where .Site.Pages "Type" "in" .Site.Params.mainSections) .Site.Params.homepage.recentLimit).Pages }} + {{ partial "article-link.html" . }} + {{ end }} +{{ end }} -- 2.52.0