From bf2f2b600f85637d796a4bff90becc1033e8b120 Mon Sep 17 00:00:00 2001 From: Jaysinh Shukla Date: Sat, 1 Aug 2026 07:28:15 +0530 Subject: [PATCH] Fix tag links 404 by applying baseurl via relative_url Tag links were hardcoded as /tags// and the per-tag RSS link as /tags//feed.xml, omitting the site baseurl (/Blog). On the GitHub Pages project site this resolved to ultimatecoder.github.io/tags// (404) instead of the generated page at .../Blog/tags//. Route both through the relative_url filter so site.baseurl is prepended, matching the pattern already used for post.url in tag_index.html. This also URL-encodes tags containing spaces. Fixes #100 Co-Authored-By: Claude Opus 4.8 --- _layouts/tag_index.html | 2 +- _layouts/tags_folder_index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_layouts/tag_index.html b/_layouts/tag_index.html index 954b047..781c27b 100644 --- a/_layouts/tag_index.html +++ b/_layouts/tag_index.html @@ -24,6 +24,6 @@

{% endfor %} -

subscribe via RSS

+

subscribe via RSS

diff --git a/_layouts/tags_folder_index.html b/_layouts/tags_folder_index.html index 7be9c40..b0be506 100644 --- a/_layouts/tags_folder_index.html +++ b/_layouts/tags_folder_index.html @@ -10,7 +10,7 @@ {% assign tag = post | first %} {% endfor %}