Skip to content

Commit fc852d1

Browse files
committed
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017vQdwS6gqbFhxk55vCFPcD
1 parent 2d3e414 commit fc852d1

7 files changed

Lines changed: 15 additions & 11 deletions

File tree

hugo.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ params:
113113
github: "https://github.com/powershellOrg"
114114
discord: "https://aka.ms/psdiscord"
115115
bluesky: "https://bsky.app/profile/powershell.org"
116+
forums: "https://forums.powershell.org"
117+
118+
# GitHub repository URL
119+
github_repo: "https://github.com/PowerShellOrg/PowerShellOrgWebsite"
116120

117121
# Podcast settings
118122
podcast:

themes/powershell-community/layouts/_default/calendar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ <h3 class="font-semibold text-gray-700">{{ .Title }}</h3>
146146
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center text-white">
147147
<h2 class="text-3xl font-bold mb-2">Have an Event to Share?</h2>
148148
<p class="text-xl mb-6 opacity-90">Submit your PowerShell-related conference, meetup, or community event by opening a GitHub issue.</p>
149-
<a href="https://github.com/PowerShellOrg/PowerShellOrgWebsite/issues/new?template=community-event.yml" target="_blank" rel="noopener"
149+
<a href="{{ .Site.Params.github_repo }}/issues/new?template=community-event.yml" target="_blank" rel="noopener"
150150
class="inline-flex items-center bg-white text-purple-600 px-6 py-3 rounded-lg font-semibold hover:bg-gray-100 transition-colors duration-200">
151151
<i class="fab fa-github mr-2"></i>Submit an Event
152152
</a>

themes/powershell-community/layouts/_default/learning.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ <h2 class="text-3xl font-bold text-gray-900">Videos & YouTube</h2>
7979
</div>
8080
<div class="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
8181

82-
<a href="https://youtube.com/PowerShellOrg" target="_blank" rel="noopener"
82+
<a href="{{ .Site.Params.social.youtube }}" target="_blank" rel="noopener"
8383
class="block bg-white rounded-xl p-6 border border-gray-200 hover:border-red-400 hover:shadow-md transition-all duration-200">
8484
<div class="flex items-start">
8585
<div class="w-10 h-10 bg-red-600 rounded-lg flex items-center justify-center flex-shrink-0 mr-4">
@@ -175,7 +175,7 @@ <h2 class="text-3xl font-bold text-gray-900">Recommended Conferences</h2>
175175
</div>
176176
<div class="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
177177

178-
<a href="https://powershellsummit.org" target="_blank" rel="noopener"
178+
<a href="{{ .Site.Params.summit.registration_url }}" target="_blank" rel="noopener"
179179
class="block bg-gray-50 rounded-xl overflow-hidden border border-gray-200 hover:border-blue-400 hover:shadow-md transition-all duration-200">
180180
<div class="bg-gradient-to-r from-blue-600 to-blue-800 p-6 text-white">
181181
<i class="fas fa-terminal text-3xl mb-3"></i>
@@ -226,7 +226,7 @@ <h3 class="text-xl font-bold">SQL Saturday Baton Rouge</h3>
226226
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center text-white">
227227
<h2 class="text-3xl font-bold mb-2">Know a Great Resource?</h2>
228228
<p class="text-xl mb-6 opacity-90">Help us grow this list. Submit a pull request to add your favorite PowerShell learning resources.</p>
229-
<a href="https://github.com/PowerShellOrg/PowerShellOrgWebsite" target="_blank" rel="noopener"
229+
<a href="{{ .Site.Params.github_repo }}" target="_blank" rel="noopener"
230230
class="inline-flex items-center bg-white text-green-600 px-6 py-3 rounded-lg font-semibold hover:bg-gray-100 transition-colors duration-200">
231231
<i class="fab fa-github mr-2"></i>Contribute on GitHub
232232
</a>

themes/powershell-community/layouts/_default/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ <h2 class="text-xl font-bold text-gray-900 mb-3">
101101
<time>{{ .Date.Format "Jan 2, 2006" }}</time>
102102
{{ with .Params.author }}
103103
<span></span>
104-
<span>{{ . }}</span>
104+
<a href="{{ "/authors/" | relURL }}{{ . | urlize }}/" class="hover:text-blue-600 transition-colors duration-200">{{ . }}</a>
105105
{{ end }}
106106
</div>
107107
{{ with .Params.categories }}

themes/powershell-community/layouts/_default/single.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h1 class="text-3xl lg:text-4xl font-bold text-gray-900 mb-4 leading-tight">{{ .
5050
<div class="w-8 h-8 bg-blue-600 rounded-full flex items-center justify-center mr-3">
5151
<i class="fas fa-user text-white text-sm"></i>
5252
</div>
53-
<span class="font-medium">{{ . }}</span>
53+
<a href="{{ "/authors/" | relURL }}{{ . | urlize }}/" class="font-medium hover:text-blue-600 transition-colors duration-200">{{ . }}</a>
5454
</div>
5555
{{ end }}
5656
<span class="text-gray-400"></span>
@@ -127,7 +127,7 @@ <h3 class="text-lg font-semibold text-gray-900 mb-3">Tags</h3>
127127
<i class="fas fa-user text-white text-xl"></i>
128128
</div>
129129
<div class="flex-1">
130-
<h3 class="text-lg font-semibold text-gray-900 mb-2">About {{ $.Params.author }}</h3>
130+
<h3 class="text-lg font-semibold text-gray-900 mb-2">About <a href="{{ "/authors/" | relURL }}{{ $.Params.author | urlize }}/" class="hover:text-blue-600 transition-colors duration-200">{{ $.Params.author }}</a></h3>
131131
<p class="text-gray-600">{{ . }}</p>
132132
</div>
133133
</div>

themes/powershell-community/layouts/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ <h3 class="text-lg font-bold text-gray-800 mb-4 flex items-center">
109109
</div>
110110

111111
<div class="mt-4 pt-4 border-t border-gray-200">
112-
<a href="https://forums.powershell.org"
112+
<a href="{{ .Site.Params.social.forums }}"
113113
class="text-blue-600 hover:text-blue-700 text-sm font-bold flex items-center transition-colors">
114114
<i class="fas fa-comments mr-2"></i>
115115
Visit Forums →
@@ -215,7 +215,7 @@ <h3 class="text-lg font-semibold text-gray-900 mb-3 line-clamp-2">
215215
{{ with .Params.author }}
216216
<div class="flex items-center text-sm text-gray-500">
217217
<i class="fas fa-user-circle mr-2"></i>
218-
<span>{{ . }}</span>
218+
<a href="{{ "/authors/" | relURL }}{{ . | urlize }}/" class="hover:text-blue-600 transition-colors duration-200">{{ . }}</a>
219219
</div>
220220
{{ end }}
221221
</div>
@@ -261,7 +261,7 @@ <h3 class="text-lg font-semibold text-gray-900 mb-2">Discord Community</h3>
261261
</div>
262262
<h3 class="text-lg font-semibold text-gray-900 mb-2">Forums</h3>
263263
<p class="text-gray-600 text-sm mb-4">Ask questions and share knowledge</p>
264-
<a href="https://forums.powershell.org" target="_blank" rel="noopener"
264+
<a href="{{ .Site.Params.social.forums }}" target="_blank" rel="noopener"
265265
class="text-green-600 font-medium hover:text-green-700">Browse Topics</a>
266266
</div>
267267

themes/powershell-community/layouts/partials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h3 class="text-lg font-semibold text-white mb-4">Quick Links</h3>
4040
<li><a href="/summit/" class="text-gray-400 hover:text-white transition-colors duration-200">Summit</a></li>
4141
<li><a href="/learning/" class="text-gray-400 hover:text-white transition-colors duration-200">Learning Resources</a></li>
4242
<li><a href="/community/" class="text-gray-400 hover:text-white transition-colors duration-200">Community</a></li>
43-
<li><a href="https://forums.powershell.org" target="_blank" rel="noopener" class="text-gray-400 hover:text-white transition-colors duration-200">Forums</a></li>
43+
<li><a href="{{ .Site.Params.social.forums }}" target="_blank" rel="noopener" class="text-gray-400 hover:text-white transition-colors duration-200">Forums</a></li>
4444
</ul>
4545
</div>
4646

0 commit comments

Comments
 (0)