remove boilerplate 'recent' overview #19

Merged
jsheunis merged 2 commits from config-recent into main 2026-04-22 12:24:03 +00:00
3 changed files with 9 additions and 3 deletions

View file

@ -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"

View file

@ -32,7 +32,7 @@ fingerprintAlgorithm = "sha256"
[homepage]
layout = "custom" # valid options: page, profile, custom
showRecent = true
showRecent = false
recentLimit = 5
[article]

View file

@ -0,0 +1,6 @@
{{ if .Site.Params.homepage.showRecent | default false }}
<h2 class="mt-8 text-2xl font-extrabold">{{ i18n "shortcode.recent_articles" | emojify }}</h2>
{{ 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 }}