Astrodevil / Astrodevil/resource-gallery

Seo and canonical not properly working for {Blog} section

Open
#3 2 comments 0 reactions 1 assignee Claimed by @arunavabasucom View on GitHub
✅status: assigned bug gssoc23 help wanted
Dominant language
Astro
Stars
33
Forks
44
PR merge metrics
No merged PRs in 30d

Description

I am posting blog from my other site to Astro website, but it's taking default canonical eg. https://resource-gallery.pages.dev/ set for overall website instead of the blog canonical eg. https://mranand.com/blogs/creating-personal-blog-with-hugo-and-netlify/ .

**Images attached below**

I generate the variable used in SEO in the layout so that works as intended, But I want to override the generated one for **Blog** section when I set a value in the markdown frontmatter? `3rd Image`.

I took help from **Ex** https://stackblitz.com/edit/github-crsac1 . See BlogPost, MainLayout and preview "First post" which has the canonicalURL frontmatter defined.

**I tried to solve but still getting errors**

![10](https://user-images.githubusercontent.com/73425223/214497881-2a4299dc-37cf-49de-97c6-f3183092746a.png)
![11](https://user-images.githubusercontent.com/73425223/214497894-55b77983-c2e0-4788-9fc1-2ff42a649fda.png)
![11a](https://user-images.githubusercontent.com/73425223/214497902-59900b70-206a-4fd0-bec9-304baabe20bc.png)
![12](https://user-images.githubusercontent.com/73425223/214497904-f7d63340-2d2a-452f-8f87-c99e854bf417.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.