From c1115d2ead05b16abe9da82ea2cd528511e75621 Mon Sep 17 00:00:00 2001 From: "Larry Smith Jr." Date: Mon, 5 Jan 2026 16:56:46 -0500 Subject: [PATCH] fix(seo): add jekyll-archives for category/tag pages - Add jekyll-archives gem to Gemfile - Configure jekyll-archives in _config.yml - Generates individual pages for /categories/:name/ and /tags/:name/ - Uses archive-taxonomy layout from minimal-mistakes theme Fixes Google Search Console 404 errors for category/tag URLs. --- Gemfile | 1 + _config.yml | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 12bc8fa6..63333ec0 100644 --- a/Gemfile +++ b/Gemfile @@ -6,4 +6,5 @@ gem "minimal-mistakes-jekyll", "~> 4.24" gem "github-pages", "~> 228" gem "jekyll-include-cache", "~> 0.2.1" gem "jekyll-redirect-from", "~> 0.16.0" +gem "jekyll-archives", "~> 2.2" gem "open_uri_redirections", "~> 0.2.1" diff --git a/_config.yml b/_config.yml index a7732417..77c044e7 100644 --- a/_config.yml +++ b/_config.yml @@ -183,6 +183,7 @@ plugins: - jekyll-feed - jekyll-include-cache - jekyll-redirect-from + - jekyll-archives # mimic GitHub Pages with --safe whitelist: @@ -192,14 +193,28 @@ whitelist: - jekyll-feed - jekyll-include-cache - jekyll-redirect-from + - jekyll-archives +# Category and Tag Archives (jekyll-archives) +# Generates individual pages for each category and tag category_archive: - type: liquid + type: jekyll-archives path: /categories/ tag_archive: - type: liquid + type: jekyll-archives path: /tags/ +jekyll-archives: + enabled: + - categories + - tags + layouts: + category: archive-taxonomy + tag: archive-taxonomy + permalinks: + category: /categories/:name/ + tag: /tags/:name/ + # HTML Compression # - https://jch.penibelst.de/ compress_html: