Skip to content

feat: add canonical URLs and meta tags for SEO#537

Open
Vaishnav88sk wants to merge 1 commit into
microcks:masterfrom
Vaishnav88sk:feat/canonical-urls-seo-clean
Open

feat: add canonical URLs and meta tags for SEO#537
Vaishnav88sk wants to merge 1 commit into
microcks:masterfrom
Vaishnav88sk:feat/canonical-urls-seo-clean

Conversation

@Vaishnav88sk

Copy link
Copy Markdown
Contributor

Description

Without canonical URLs, search engines may index duplicate content from different URL variations (with/without trailing slashes, different case, etc.). This dilutes page authority and can hurt rankings.

SEO enhancement requested in issue #209. Canonical tags are essential for any professional website to ensure proper search engine indexing.

This PR adds to the head.html partial:

  • Canonical URL link tags pointing to the canonical permalink
  • Meta description with fallback to summary/site description
  • Meta keywords support (for engines that still use them)
  • Author meta tag for bylines

How will this change help?

  • Consolidate link equity to preferred URLs
  • Prevent duplicate content issues
  • Provide explicit metadata for search engines
  • Improve keyword targeting with proper description and keywords meta

Related issue(s)

#209

@yada

yada commented Jun 1, 2026

Copy link
Copy Markdown
Member

@Vaishnav88sk any changes to the layout are very very sensitive and ideally must be avoided...
For example, this has been reverted (it removed all images on the website!): c9ed769

So, this needs to be thoroughly tested, and the pros and cons of any layout modification must be carefully evaluated.

@Vaishnav88sk

Vaishnav88sk commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

@Vaishnav88sk any changes to the layout are very very sensitive and ideally must be avoided... For example, this has been reverted (it removed all images on the website!): c9ed769

So, this needs to be thoroughly tested, and the pros and cons of any layout modification must be carefully evaluated.

@yada I tested this thoroughly locally using hugo server. The site builds correctly, all images render properly, and the layout is completely unchanged.

Screenshot from 2026-06-06 03-06-45 Screenshot from 2026-06-06 03-06-38

The screenshot below from browser Inspector → Elements → confirms my changes work exactly as intended - canonical URL, meta description, keywords, and author tags are cleanly injected with no impact on any visual rendering or image processing.

image

My changes only add invisible metadata tags inside - no structural HTML, no image processing, no rendering logic is touched.

Happy to address any further concerns or to make any adjustments!!

Signed-off-by: Vaishnav88sk <vaishnavsk8804@gmail.com>
@Vaishnav88sk Vaishnav88sk force-pushed the feat/canonical-urls-seo-clean branch from 5b4b5e3 to 2eaa716 Compare June 5, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/blog component/documentation component/ux Improvements or additions to UX or style kind/enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants