remove boilerplate 'recent' overview #19
3 changed files with 9 additions and 3 deletions
|
|
@ -9,8 +9,8 @@ copyright = "© 2025 Psychoinformatics group"
|
||||||
[params]
|
[params]
|
||||||
dateFormat = "2 January 2006"
|
dateFormat = "2 January 2006"
|
||||||
|
|
||||||
mainSections = ["samples"]
|
mainSections = ["posts", "projects"]
|
||||||
description = "A powerful, lightweight theme for Hugo built with Tailwind CSS."
|
description = "Research in this lab focuses on the interface of computer and information sciences, neuroscience, and psychology."
|
||||||
|
|
||||||
[params.author]
|
[params.author]
|
||||||
name = "Congo"
|
name = "Congo"
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ fingerprintAlgorithm = "sha256"
|
||||||
|
|
||||||
[homepage]
|
[homepage]
|
||||||
layout = "custom" # valid options: page, profile, custom
|
layout = "custom" # valid options: page, profile, custom
|
||||||
showRecent = true
|
showRecent = false
|
||||||
recentLimit = 5
|
recentLimit = 5
|
||||||
|
|
||||||
[article]
|
[article]
|
||||||
|
|
|
||||||
6
layouts/_partials/recent-articles.html
Normal file
6
layouts/_partials/recent-articles.html
Normal 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 }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue