From 46ebfe2305f8fad296279af62d0ebc25bcbf617d Mon Sep 17 00:00:00 2001
From: Roan Horning <roan.horning@gmail.com>
Date: Sat, 13 Aug 2022 13:11:30 -0400
Subject: [PATCH] Fix links to static pages

---
 templates/content-contribute.tpl.html             | 2 +-
 templates/content-correspondents.tpl.html         | 4 ++--
 templates/content-stuff_you_need_to_know.tpl.html | 8 ++++----
 templates/page.tpl.html                           | 4 ++--
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/templates/content-contribute.tpl.html b/templates/content-contribute.tpl.html
index afc293a..e70fed0 100644
--- a/templates/content-contribute.tpl.html
+++ b/templates/content-contribute.tpl.html
@@ -61,7 +61,7 @@
   After you have selected a date you will be redirected to the <a href="https://www.hackerpublicradio.org/request.php">request page</a>, where you will be asked to select your show and email address. We will send a link to where you can upload your show to this address and so it must be a valid working address that you can access quickly. We intend to use <a href="https://www.gnupg.org/">GPG</a> to speed up the validation of hosts, so you may wish to use an email address that has an associated public key available on public key servers.
   </p>
   <p>
-  <a href="https://www.hackerpublicradio.org/request_a_slot.php">More Information</a>.
+  <a href="<!--% absolute_path(baseurl) %-->request_a_slot.html">More Information</a>.
   </p>
   
   <h2>Questions ?</h2>
diff --git a/templates/content-correspondents.tpl.html b/templates/content-correspondents.tpl.html
index cdc331a..708d522 100644
--- a/templates/content-correspondents.tpl.html
+++ b/templates/content-correspondents.tpl.html
@@ -1,7 +1,7 @@
 <!--% PROCESS 'shared-utils.tpl.html' %-->
 <article>
 	<h2 class="title">Correspondents</h2>
-	<p>For more information on how to become a Correspondent see our <a href="contribute.php">contribute</a></center> page. To add a logo here, either email one to admin at hpr or setup your email on <a href="https://en.gravatar.com/">Gravatar</a>. To protect your browsing privacy we gather the images every hour and serve them directly from HPR.<p />
+	<p>For more information on how to become a Correspondent see our <a href="<!--% absolute_path(baseurl) %-->contribute.html">contribute</a></center> page. To add a logo here, either email one to admin at hpr or setup your email on <a href="https://en.gravatar.com/">Gravatar</a>. To protect your browsing privacy we gather the images every hour and serve them directly from HPR.<p />
 <!--% USE DBI(constants.driver, constants.user, constants.password) %-->
 <!--% PROCESS 'shared-avatar.tpl.html' %-->
 	<table>
@@ -27,5 +27,5 @@
 	</tr>
 	<!--% END %-->
 	</table>
-	<p><a href="contribute.php">Become a Correspondent</a></p>
+	<p><a href="<!--% absolute_path(baseurl) %-->contribute.html">Become a Correspondent</a></p>
 </article>
diff --git a/templates/content-stuff_you_need_to_know.tpl.html b/templates/content-stuff_you_need_to_know.tpl.html
index 8e6ceef..a8f6c89 100644
--- a/templates/content-stuff_you_need_to_know.tpl.html
+++ b/templates/content-stuff_you_need_to_know.tpl.html
@@ -18,13 +18,13 @@ Please join the <a href="https://hackerpublicradio.org/mailman/listinfo/hpr_hack
 <p>
 Hacker Public Radio is dedicated to sharing knowledge.
 We release about 260 shows a year, which is probably more than all of the other FOSS podcasts put together.
-If you listen to HPR, then we would love you to <a target="_blank" href="contribute.php">contribute</a> one show a year.
+If you listen to HPR, then we would love you to <a target="_blank" href="<!--% absolute_path(baseurl) %-->contribute.html">contribute</a> one show a year.
 Remember once that all the emergency shows have been used up and there are no more shows in the queue, HPR as a project will stop.
 
 </p>
 <h2 id="patrons">Support our Patrons<a href="#patrons">.</a></h2>
 <p>
-Our hosting is kindly provided to us by <a href="https://www.hackerpublicradio.org/correspondents.php?hostid=174">Josh Knapp</a> from <a href="https://anhonesthost.com/hosting/shared-hosting">AnHonestHost.com</a>, and The Internet Archive at <a href="https://archive.org/donate/">Archive.org</a>.
+Our hosting is kindly provided to us by <a href="<!--% absolute_path(baseurl) %-->correspondents/0174.html">Josh Knapp</a> from <a href="https://anhonesthost.com/hosting/shared-hosting">AnHonestHost.com</a>, and The Internet Archive at <a href="https://archive.org/donate/">Archive.org</a>.
 We encourage you to support our Patrons.
 Over the years kind people have donated services and supported equipment for our conferences.
 
@@ -64,7 +64,7 @@ We <strong>do</strong> transcode the audio into different formats.
 <p>
 Please note that this only relates to the audio you upload.
 The rest of the meta-data (branding/summaries/tags/show notes/etc.), are managed by the HPR Community, and <strong>may</strong> be edited.
-The show <a href="https://hackerpublicradio.org/eps.php?id=2210">hpr2210 :: On Freedom of Speech and Censorship</a> describes the agreed approach to this topic.
+The show <a href="<!--% absolute_path(baseurl) %-->eps/hpr2210/index.html">hpr2210 :: On Freedom of Speech and Censorship</a> describes the agreed approach to this topic.
 </p>
 
 </p>
@@ -81,7 +81,7 @@ When dealing with content that is "explicit" or contains material that would bes
 </p>
 
 <p>
-<a href="https://hackerpublicradio.org/eps.php?id=2210">hpr2210 :: On Freedom of Speech and Censorship</a> describes the agreed approach to this topic.
+<a href="<!--% absolute_path(baseurl) %-->eps/hpr2210/index.html">hpr2210 :: On Freedom of Speech and Censorship</a> describes the agreed approach to this topic.
 </p>
 
 <h2 id="schedule">You determine when your show will be released<a href="#schedule">.</a></h2>
diff --git a/templates/page.tpl.html b/templates/page.tpl.html
index 31c9240..8fc6b32 100644
--- a/templates/page.tpl.html
+++ b/templates/page.tpl.html
@@ -39,10 +39,10 @@
 	<a href=""><img id="hprlogo" src="<!--% absolute_path(baseurl) %-->images/hpr_logo.png" alt=""></a>
 	<div id="hpr_banner">
 		<p id="accessible_menu">
-			<a href="sitemap.php">Site Map</a>
+			<a href="<!--% absolute_path(baseurl) %-->sitemap.html">Site Map</a>
 			- <a href="#maincontent">skip to main content</a>
 			</p>
-		<h1 id="sitename">Hacker <a href="https://www.hackerpublicradio.org/comments_viewer.php">P</a>ublic <a href="/syndication.php">R</a>adio</h1>
+		<h1 id="sitename">Hacker <a href="https://www.hackerpublicradio.org/comments_viewer.php">P</a>ublic <a href="<!--% absolute_path(baseurl) %-->syndication.html">R</a>adio</h1>
 		<h2>Your ideas, projects, opinions - podcasted.</h2>
 		<h3>New episodes Monday through Friday.</h3>
 	</div>