fix: replace default theme meta description with site description#1
Open
zetxek wants to merge 1 commit into
Open
fix: replace default theme meta description with site description#1zetxek wants to merge 1 commit into
zetxek wants to merge 1 commit into
Conversation
The site was using the Adritian theme's default meta description, which appears in search engine results and social media previews. Set a custom description specific to this site. Related: zetxek/adritian-free-hugo-theme#560
There was a problem hiding this comment.
Pull request overview
This PR updates the site’s meta description content so the deployed site no longer falls back to the Adritian theme’s default description in search/social previews.
Changes:
- Replaces the default theme
meta_descriptionandhead_descriptionstrings ini18n/en.yamlwith the site’s description. - Sets
[params].descriptioninhugo.tomlto the same site description.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| i18n/en.yaml | Updates English i18n strings used as meta/head description fallbacks. |
| hugo.toml | Sets the site’s configured description under [params] to match the intended meta description. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
4
to
+5
| - id: "meta_description" | ||
| translation: "This hugo theme (Adritian) is based on Bootstrap and has features that make it suitable for a personal site, a portfolio or other kind of Single Page Applications." | ||
| translation: "mwhyte.dev — software engineering portfolio showcasing projects, experience, and technical writing." |
Comment on lines
52
to
+53
| - id: "head_description" | ||
| translation: "This hugo theme (Adritian) is based on Bootstrap and has features that make it suitable for a personal site, a portfolio or other kind of Single Page Applications." | ||
| translation: "mwhyte.dev — software engineering portfolio showcasing projects, experience, and technical writing." |
Comment on lines
52
to
55
| [params] | ||
| title = 'mwhyte.dev - software engineering' | ||
| description = 'This hugo theme (Adritian) is based on Bootstrap and has features that make it suitable for a personal site, a portfolio or other kind of Single Page Applications.' | ||
| description = 'mwhyte.dev — software engineering portfolio showcasing projects, experience, and technical writing.' | ||
| images = ['/img/og-img.png'] |
Comment on lines
4
to
+5
| - id: "meta_description" | ||
| translation: "This hugo theme (Adritian) is based on Bootstrap and has features that make it suitable for a personal site, a portfolio or other kind of Single Page Applications." | ||
| translation: "mwhyte.dev — software engineering portfolio showcasing projects, experience, and technical writing." |
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.
Fix: Replace default theme meta description
Your site is currently using the Adritian theme's default meta description, which appears in search engine results and social media previews as:
This happens due to zetxek/adritian-free-hugo-theme#560 — a bug where the theme's fallback chain skips
params.description. The fix is in PR #561, but in the meantime this PR sets your own description.Changes
descriptionin hugo.tomli18n/en.yamlhead_description and meta_description