From 230a28fa8dd4dea83d63910dcd193a2c0d0493e1 Mon Sep 17 00:00:00 2001 From: Andrew Doering Date: Thu, 5 Mar 2026 13:18:32 +0100 Subject: [PATCH] feat(widgets): link widget titles to their respective pages (#1277) - archives.html: Link the "Archives" title to the archives page, consistent with how individual year links already work - taxonomy.html: Change showLink default from false to true so tag-cloud and categories widget titles link to their taxonomy listing pages by default Widget titles are the primary affordance users interact with, so linking them to the full listing page improves navigation. The showLink param can still be set to false to disable this. Co-authored-by: delize <4028612+delize@users.noreply.github.com> --- layouts/_partials/widget/archives.html | 6 +++++- layouts/_partials/widget/taxonomy.html | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/_partials/widget/archives.html b/layouts/_partials/widget/archives.html index 49c9c69..c2ea933 100644 --- a/layouts/_partials/widget/archives.html +++ b/layouts/_partials/widget/archives.html @@ -7,7 +7,11 @@
{{ partial "helper/icon" "infinity" }}
-

{{ T "widget.archives.title" }}

+

+ + {{ T "widget.archives.title" }} + +

{{ $pages := partial "helper/pages.html" $context.Site.Home }} {{ $archives := $pages.GroupByDate "2006" }} diff --git a/layouts/_partials/widget/taxonomy.html b/layouts/_partials/widget/taxonomy.html index cdb3e5b..8058fa9 100644 --- a/layouts/_partials/widget/taxonomy.html +++ b/layouts/_partials/widget/taxonomy.html @@ -13,7 +13,7 @@ {{- $widgetTitle := .Params.title -}} {{- $limit := default 10 .Params.limit -}} {{- $icon := default .Params.taxonomy .Params.icon -}} -{{- $showLink := default false .Params.showLink -}} +{{- $showLink := default true .Params.showLink -}}