From 3dadead8d6cc2c5e20547ddaf626cf73206b48bc Mon Sep 17 00:00:00 2001 From: Fundor333 Date: Tue, 5 Aug 2025 03:10:26 +0200 Subject: [PATCH] Update params.yaml to include "micro" in mainSections and clear secondarysections; adjust index.html to display last 20 posts in recent sections --- config/_default/params.yaml | 4 ++-- content/micro/2025/07/re-/index.md | 2 +- layouts/index.html | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/_default/params.yaml b/config/_default/params.yaml index 374bc822..5a75e1a8 100644 --- a/config/_default/params.yaml +++ b/config/_default/params.yaml @@ -12,8 +12,8 @@ defaultColor: # Setting it to 'auto' applies the color scheme based on the visitor's device color preference.If you don't specify anything, ignore this parameter, or leave it blank, # the default value is set to 'auto'. # You can take a look at layouts/index.html for more information. -mainSections: ["post", "photos", "weeknote", "now"] -secondarysections: ["micro"] +mainSections: ["post", "photos", "weeknote", "now", "micro"] +secondarysections: [] feedSections: ["post", "photos", "micro", "weeknote"] commentSections: ["post", "photos", "micro", "weeknote", "series"] suggestionSections: ["post"] diff --git a/content/micro/2025/07/re-/index.md b/content/micro/2025/07/re-/index.md index 80e29b02..bfddef96 100644 --- a/content/micro/2025/07/re-/index.md +++ b/content/micro/2025/07/re-/index.md @@ -1,5 +1,5 @@ --- -title: "Re " +title: "Re: An incomplete list of blogs that use WebMention" date: 2025-07-27T21:14:04+02:00 description: tags: diff --git a/layouts/index.html b/layouts/index.html index bb5211ac..32890794 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -19,10 +19,10 @@ {{ partial "bio" . }}

{{ T "home.recent_posts" }}

- {{/* Show last 10 posts in reverse date order */}} + {{/* Show last 20 posts in reverse date order */}} {{ $pagesToShow := where .Site.RegularPages "Type" "in" site.Params.mainSections }} {{ $posts := $pagesToShow.ByDate.Reverse }} - {{ range first 10 $posts }} + {{ range first 20 $posts }} {{ partial "postCard" . }} {{ end }} {{ if gt (len $posts) 5 }} @@ -33,10 +33,10 @@

{{ end }}

{{ T "home.recent_posts" }}

- {{/* Show last 10 posts in reverse date order */}} + {{/* Show last 20 posts in reverse date order */}} {{ $pagesToShow := where .Site.RegularPages "Type" "in" site.Params.secondarysections }} {{ $posts := $pagesToShow.ByDate.Reverse }} - {{ range first 10 $posts }} + {{ range first 20 $posts }} {{ partial "postCard" . }} {{ end }} {{ if gt (len $posts) 5 }}