feat: Enhance SEO/SMO with dynamic Open Graph tags#426
Open
Divyapahuja31 wants to merge 2 commits intoapache:masterfrom
Open
feat: Enhance SEO/SMO with dynamic Open Graph tags#426Divyapahuja31 wants to merge 2 commits intoapache:masterfrom
Divyapahuja31 wants to merge 2 commits intoapache:masterfrom
Conversation
added 2 commits
February 7, 2026 23:33
Added dynamic og:url and og:image generation for better social media previews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR significantly improves the website's SEO (Search Engine Optimization) and SMO (Social Media Optimization) by implementing dynamic Open Graph meta tags.
The Problem
Previously, the
og:urlandog:imagetags were hardcoded or static. This meant that when users shared specific blog posts or documentation pages on platforms like Twitter, LinkedIn, or Slack, the preview often displayed generic information or the wrong image, leading to poor user engagement.The Solution
I have updated
RenderSiteTask.groovyandBlogTask.groovyto dynamically generate metadata:og:url: Each specific page now reports its permalink instead of the site root, ensuring social platforms point users to the correct destination.og:image:og:image:widthandog:image:heighttags (300x300), which were causing distortion for non-square images.Impact
These changes ensure that all shared links from the Grails website look professional, relevant, and visually appealing, directly improving the brand's presence on social media.
Checklist
og:urlpoints to the correct permalink on blog posts and pages.og:imagecorrectly picks up blog post images.