From f6910a1b470d87963266dfb4a5c6739f66d1d4a9 Mon Sep 17 00:00:00 2001 From: chhanz <41337266+chhanz@users.noreply.github.com> Date: Thu, 16 Apr 2026 00:54:34 +0000 Subject: [PATCH] fix: improve SEO and sitemap issues - canonical, robots.txt, structured data Resolve Google Search Console sitemap detection failure and traffic decline: - Add canonical URL tag (head.html) - Change robots.txt to block only /assets/images/ instead of entire /assets/ (allow CSS/JS crawling) - Exclude 404 page from sitemap (sitemap: false) - Add noindex meta tag for pagination pages - Exclude tag pages from sitemap and add noindex - Fix DHCP post malformed URL (category: linux, dhcp -> categories: [linux, dhcp]) - Fix og:image fallback bug (page.image -> meta_image) - Add BlogPosting/WebSite JSON-LD structured data Co-Authored-By: Claude Opus 4.6 (1M context) --- 404.html | 1 + _config.yml | 1 + _includes/head.html | 8 +++++- _layouts/home.html | 13 ++++++++++ _layouts/post.html | 34 +++++++++++++++++++++++++ _layouts/tag.html | 1 + _posts/2020-11-17-configuration-dhcp.md | 2 +- robots.txt | 2 +- 8 files changed, 59 insertions(+), 3 deletions(-) diff --git a/404.html b/404.html index c472b4e..eaf2115 100644 --- a/404.html +++ b/404.html @@ -1,5 +1,6 @@ --- layout: default +sitemap: false ---