Replace hardcoded URLs with site params and link author names#25
Merged
Conversation
…r names into links - Add forums URL and github_repo to hugo.yaml params so they're configurable in one place - Replace hardcoded https://forums.powershell.org in footer, homepage, and index with {{ .Site.Params.social.forums }} - Replace hardcoded YouTube, summit, and GitHub repo URLs in learning.html with their corresponding site params - Replace hardcoded GitHub repo URL in calendar.html with {{ .Site.Params.github_repo }} - Make all author name references in single.html, list.html, and index.html render as links to /authors/[slug]/ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017vQdwS6gqbFhxk55vCFPcD
✅ Deploy Preview for powershellorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Absolute Permalink bakes in the baseURL (https://powershell.org), which breaks links on Netlify deploy previews. RelPermalink gives a root-relative path that works on any deployment domain. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017vQdwS6gqbFhxk55vCFPcD
…emplates Absolute Permalink embeds the baseURL (https://powershell.org), breaking navigation on Netlify deploy previews and any non-production deployment. RelPermalink gives a root-relative path that works on every domain. Excluded: OG/Twitter meta tags and social share URLs in baseof.html and single.html which intentionally need absolute URLs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017vQdwS6gqbFhxk55vCFPcD
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.
Summary
social.forumsandgithub_repotohugo.yamlparams so all community URLs are managed in one placehttps://forums.powershell.orginfooter.html,index.html(×2) with{{ .Site.Params.social.forums }}learning.htmlwith their existing site param equivalentscalendar.htmlwith{{ .Site.Params.github_repo }}/issues/new?...single.html,list.html, andindex.htmlrender as links to/authors/[slug]/instead of plain textTest plan
hugo server) and verify no broken links on homepage, footer, learning, and calendar pages/authors/[slug]/pagehttps://forums.powershell.orgsocial.forumsorgithub_repoinhugo.yamland confirm all references update automatically🤖 Generated with Claude Code
https://claude.ai/code/session_017vQdwS6gqbFhxk55vCFPcD
Generated by Claude Code