resource-gallery icon indicating copy to clipboard operation
resource-gallery copied to clipboard

Seo and canonical not properly working for {Blog} section

Open Astrodevil opened this issue 1 year ago • 2 comments

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 11 11a 12

Astrodevil avatar Jan 25 '23 06:01 Astrodevil

I would like to work on this!

arunavabasucom avatar May 21 '23 15:05 arunavabasucom

@Astrodevil I want to work on this issue under gssoc'23

vk20july avatar Jun 10 '23 06:06 vk20july