Skip to content

fix: improve SEO and sitemap issues#178

Merged
chhanz merged 1 commit intomasterfrom
fix/seo-sitemap-improvements
Apr 16, 2026
Merged

fix: improve SEO and sitemap issues#178
chhanz merged 1 commit intomasterfrom
fix/seo-sitemap-improvements

Conversation

@chhanz
Copy link
Copy Markdown
Owner

@chhanz chhanz commented Apr 16, 2026

Summary

  • Add <link rel="canonical"> tag to resolve Google Search Console sitemap detection failure
  • Change robots.txt to block only /assets/images/ instead of entire /assets/ (allow CSS/JS crawling for Googlebot rendering)
  • Exclude 404 page and tag pages from sitemap, add noindex meta tag for pagination/tag pages
  • Fix DHCP post malformed URL (category: linux, dhcpcategories: [linux, dhcp])
  • Fix og:image fallback bug (page.imagemeta_image)
  • Add BlogPosting / WebSite JSON-LD structured data for rich search results

Changed files

File Change
_includes/head.html canonical URL, noindex for pagination/tag, og:image fix
robots.txt /assets//assets/images/
404.html sitemap: false
_config.yml tag collection sitemap: false
_layouts/tag.html noindex: true
_layouts/post.html BlogPosting JSON-LD
_layouts/home.html WebSite JSON-LD
_posts/2020-11-17-configuration-dhcp.md category fix

…ed 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) <noreply@anthropic.com>
@chhanz chhanz merged commit b689395 into master Apr 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant