Skip to content

Replace hardcoded URLs with site params and link author names#25

Merged
HeyItsGilbert merged 3 commits into
mainfrom
claude/hardcoded-powershell-urls-w2mnpq
Jun 21, 2026
Merged

Replace hardcoded URLs with site params and link author names#25
HeyItsGilbert merged 3 commits into
mainfrom
claude/hardcoded-powershell-urls-w2mnpq

Conversation

@HeyItsGilbert

Copy link
Copy Markdown
Member

Summary

  • Adds social.forums and github_repo to hugo.yaml params so all community URLs are managed in one place
  • Replaces hardcoded https://forums.powershell.org in footer.html, index.html (×2) with {{ .Site.Params.social.forums }}
  • Replaces hardcoded YouTube, PowerShell Summit, and GitHub repo URLs in learning.html with their existing site param equivalents
  • Replaces hardcoded GitHub issue URL in calendar.html with {{ .Site.Params.github_repo }}/issues/new?...
  • Makes all author name references in single.html, list.html, and index.html render as links to /authors/[slug]/ instead of plain text

Test plan

  • Build the site locally (hugo server) and verify no broken links on homepage, footer, learning, and calendar pages
  • Click an author name on an article card (homepage), article list page, and single article page — each should navigate to the correct /authors/[slug]/ page
  • Verify the Forums link in the footer and homepage resolves to https://forums.powershell.org
  • Update social.forums or github_repo in hugo.yaml and confirm all references update automatically

🤖 Generated with Claude Code

https://claude.ai/code/session_017vQdwS6gqbFhxk55vCFPcD


Generated by Claude Code

…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
@netlify

netlify Bot commented Jun 20, 2026

Copy link
Copy Markdown

Deploy Preview for powershellorg ready!

Name Link
🔨 Latest commit 8a1f3c4
🔍 Latest deploy log https://app.netlify.com/projects/powershellorg/deploys/6a370de6797b8d00086b5cf8
😎 Deploy Preview https://deploy-preview-25--powershellorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

claude added 2 commits June 20, 2026 22:01
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
@HeyItsGilbert HeyItsGilbert marked this pull request as ready for review June 20, 2026 22:03
@HeyItsGilbert HeyItsGilbert merged commit 66b4195 into main Jun 21, 2026
5 checks passed
@HeyItsGilbert HeyItsGilbert deleted the claude/hardcoded-powershell-urls-w2mnpq branch June 21, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants