From fc852d13cae17b15ca2dd3f9578bc92e90e50984 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 20 Jun 2026 21:54:00 +0000 Subject: [PATCH 1/3] Replace hardcoded PowerShell.org URLs with site params and make author 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 Claude-Session: https://claude.ai/code/session_017vQdwS6gqbFhxk55vCFPcD --- hugo.yaml | 4 ++++ themes/powershell-community/layouts/_default/calendar.html | 2 +- themes/powershell-community/layouts/_default/learning.html | 6 +++--- themes/powershell-community/layouts/_default/list.html | 2 +- themes/powershell-community/layouts/_default/single.html | 4 ++-- themes/powershell-community/layouts/index.html | 6 +++--- themes/powershell-community/layouts/partials/footer.html | 2 +- 7 files changed, 15 insertions(+), 11 deletions(-) diff --git a/hugo.yaml b/hugo.yaml index 562736c10..6b14d1332 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -113,6 +113,10 @@ params: github: "https://github.com/powershellOrg" discord: "https://aka.ms/psdiscord" bluesky: "https://bsky.app/profile/powershell.org" + forums: "https://forums.powershell.org" + + # GitHub repository URL + github_repo: "https://github.com/PowerShellOrg/PowerShellOrgWebsite" # Podcast settings podcast: diff --git a/themes/powershell-community/layouts/_default/calendar.html b/themes/powershell-community/layouts/_default/calendar.html index c52e0364d..45766b161 100644 --- a/themes/powershell-community/layouts/_default/calendar.html +++ b/themes/powershell-community/layouts/_default/calendar.html @@ -146,7 +146,7 @@

{{ .Title }}

Have an Event to Share?

Submit your PowerShell-related conference, meetup, or community event by opening a GitHub issue.

- Submit an Event diff --git a/themes/powershell-community/layouts/_default/learning.html b/themes/powershell-community/layouts/_default/learning.html index bfc7422da..0ced32705 100644 --- a/themes/powershell-community/layouts/_default/learning.html +++ b/themes/powershell-community/layouts/_default/learning.html @@ -79,7 +79,7 @@

Videos & YouTube

-
@@ -175,7 +175,7 @@

Recommended Conferences

-
@@ -226,7 +226,7 @@

SQL Saturday Baton Rouge

Know a Great Resource?

Help us grow this list. Submit a pull request to add your favorite PowerShell learning resources.

-
Contribute on GitHub diff --git a/themes/powershell-community/layouts/_default/list.html b/themes/powershell-community/layouts/_default/list.html index d64835850..be43e708f 100644 --- a/themes/powershell-community/layouts/_default/list.html +++ b/themes/powershell-community/layouts/_default/list.html @@ -101,7 +101,7 @@

{{ with .Params.author }} - {{ . }} + {{ . }} {{ end }}

{{ with .Params.categories }} diff --git a/themes/powershell-community/layouts/_default/single.html b/themes/powershell-community/layouts/_default/single.html index b685f44d2..b2294fec7 100644 --- a/themes/powershell-community/layouts/_default/single.html +++ b/themes/powershell-community/layouts/_default/single.html @@ -50,7 +50,7 @@

{{ .
- {{ . }} + {{ . }}

{{ end }} @@ -127,7 +127,7 @@

Tags

-

About {{ $.Params.author }}

+

About {{ $.Params.author }}

{{ . }}

diff --git a/themes/powershell-community/layouts/index.html b/themes/powershell-community/layouts/index.html index 6769b28f1..fb79eac41 100644 --- a/themes/powershell-community/layouts/index.html +++ b/themes/powershell-community/layouts/index.html @@ -109,7 +109,7 @@

@@ -261,7 +261,7 @@

Discord Community

Forums

Ask questions and share knowledge

- Browse Topics diff --git a/themes/powershell-community/layouts/partials/footer.html b/themes/powershell-community/layouts/partials/footer.html index 4676e4dc6..69336d3d2 100644 --- a/themes/powershell-community/layouts/partials/footer.html +++ b/themes/powershell-community/layouts/partials/footer.html @@ -40,7 +40,7 @@

Quick Links

  • Summit
  • Learning Resources
  • Community
  • -
  • Forums
  • +
  • Forums
  • From a8f89bfb66206fee9f52d48998192c40fa823684 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 20 Jun 2026 22:01:01 +0000 Subject: [PATCH 2/3] Use RelPermalink for author profile links to fix deploy preview URLs 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 Claude-Session: https://claude.ai/code/session_017vQdwS6gqbFhxk55vCFPcD --- themes/powershell-community/layouts/_default/authors.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/powershell-community/layouts/_default/authors.html b/themes/powershell-community/layouts/_default/authors.html index e3f3551e5..0e68c1de2 100644 --- a/themes/powershell-community/layouts/_default/authors.html +++ b/themes/powershell-community/layouts/_default/authors.html @@ -46,7 +46,7 @@

    {{ .Title }}

    - + {{ .Page.Title }}

    @@ -58,7 +58,7 @@

    - View Profile From 8a1f3c461edaa24fd1d5321c1752397f68a58c60 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 20 Jun 2026 22:02:11 +0000 Subject: [PATCH 3/3] Replace all internal .Permalink usages with .RelPermalink in layout templates 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 Claude-Session: https://claude.ai/code/session_017vQdwS6gqbFhxk55vCFPcD --- .../layouts/_default/calendar.html | 2 +- themes/powershell-community/layouts/_default/list.html | 8 ++++---- .../powershell-community/layouts/_default/single.html | 10 +++++----- themes/powershell-community/layouts/index.html | 6 +++--- themes/powershell-community/layouts/podcast/list.html | 4 ++-- .../powershell-community/layouts/taxonomy/author.html | 8 ++++---- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/themes/powershell-community/layouts/_default/calendar.html b/themes/powershell-community/layouts/_default/calendar.html index 45766b161..09d0fefbc 100644 --- a/themes/powershell-community/layouts/_default/calendar.html +++ b/themes/powershell-community/layouts/_default/calendar.html @@ -11,7 +11,7 @@

    {{ .Title }}

    {{ .Params.description }}

    {{ with .OutputFormats.Get "Calendar" }} diff --git a/themes/powershell-community/layouts/_default/list.html b/themes/powershell-community/layouts/_default/list.html index be43e708f..d575ad8bc 100644 --- a/themes/powershell-community/layouts/_default/list.html +++ b/themes/powershell-community/layouts/_default/list.html @@ -70,13 +70,13 @@

    {{ end }}

    - + {{ .Title }}

    {{ .Summary }}

    - Listen @@ -112,7 +112,7 @@

    - + {{ .Title }}

    @@ -120,7 +120,7 @@

    {{ .Summary }}

    - Read More diff --git a/themes/powershell-community/layouts/_default/single.html b/themes/powershell-community/layouts/_default/single.html index b2294fec7..e8aea091e 100644 --- a/themes/powershell-community/layouts/_default/single.html +++ b/themes/powershell-community/layouts/_default/single.html @@ -146,7 +146,7 @@

    Related Articles

    {{ .Date.Format "Jan 2, 2006" }}

    - + {{ .Title }}

    @@ -157,12 +157,12 @@

    {{ end }} - +