From b4448caf16ecf2d9d81f99e8aa3e57a53aee7945 Mon Sep 17 00:00:00 2001 From: Dave Morriss Date: Sat, 9 Sep 2023 17:54:19 +0100 Subject: [PATCH] Fixing 'absolute_url' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit site-generator: Added all the modules that the script and the templates use to make it explicit what is required. templates/shared-utils.tpl.html: Added a new TT² macro called 'absolute_url' which takes two arguments, the base and the path or relative URL. It's fairly primitive but seems to work. templates/content-about.tpl.html, templates/content-recording.tpl.html, templates/content-request_a_slot.tpl.html, templates/content-requested_topics.tpl.html, templates/page.tpl.html: All calls to 'absolute_url' changed to use two arguments, and the link definitions adjusted to match this change. --- site-generator | 7 + templates/content-about.tpl.html | 138 ++++++++++---------- templates/content-recording.tpl.html | 10 +- templates/content-request_a_slot.tpl.html | 10 +- templates/content-requested_topics.tpl.html | 6 +- templates/page.tpl.html | 2 +- templates/shared-utils.tpl.html | 14 ++ 7 files changed, 104 insertions(+), 83 deletions(-) diff --git a/site-generator b/site-generator index 71ec176..405c849 100755 --- a/site-generator +++ b/site-generator @@ -116,8 +116,15 @@ use Pod::Usage; use Config::Std; use Text::CSV_XS; use HTML::Entities qw(encode_entities_numeric); +use Date::Calc; +use DBI; +use DBD::SQLite; +use Tie::DBI; use Template; +use Template::Plugin::Date; +use Template::Plugin::DBI; use Template::Plugin::HTML::Strip; + use Data::Dumper; exit main(); diff --git a/templates/content-about.tpl.html b/templates/content-about.tpl.html index e3d7f1e..a9df034 100644 --- a/templates/content-about.tpl.html +++ b/templates/content-about.tpl.html @@ -1,40 +1,40 @@ -

Welcome to HPR.

- +

Welcome to HPR.

+ -

About HPR.

+

About HPR.

-

The HPR Community.

-

What differentiates HPR from other podcasts is that the shows are crowd sourced from the community - fellow listeners like you. There is no restriction on how long the show can be, nor on the topic you can cover as long as they are not spam and "are of interest to Hackers". If you want to see what topics have been covered so far just have a look at our Archive. We also allow for a series of shows so that hosts can go into more detail on a topic.

+

The HPR Community.

+

What differentiates HPR from other podcasts is that the shows are crowd sourced from the community - fellow listeners like you. There is no restriction on how long the show can be, nor on the topic you can cover as long as they are not spam and "are of interest to Hackers". If you want to see what topics have been covered so far just have a look at our Archive. We also allow for a series of shows so that hosts can go into more detail on a topic.

-

You can download/listen to the shows here or you can subscribe to the show in your favorite podcatching client to automatically get our new shows as soon as they are available. You can copy and redistribute the shows for free provided you adhere to the Creative Commons Attribution Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) License.

+

You can download/listen to the shows here or you can subscribe to the show in your favorite podcatching client to automatically get our new shows as soon as they are available. You can copy and redistribute the shows for free provided you adhere to the Creative Commons Attribution Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) License.

-

History.

-

Hacker Public Radio (HPR) is an Internet Radio show (podcast) that releases shows every weekday Monday through Friday. HPR has a long lineage going back to Radio FreeK America, Binary Revolution Radio & Infonomicon, and it is a direct continuation of Twatech radio. Please listen to StankDawg's "Introduction to HPR" for more information.

+

History.

+

Hacker Public Radio (HPR) is an Internet Radio show (podcast) that releases shows every weekday Monday through Friday. HPR has a long lineage going back to Radio FreeK America, Binary Revolution Radio & Infonomicon, and it is a direct continuation of Twatech radio. Please listen to StankDawg's "Introduction to HPR" for more information.

-

Free Culture.

+

Free Culture.

Hacker Public Radio is dedicated to sharing knowledge. We do not accept donations so please consider supporting our patrons. If you listen to HPR, then we would love you to contribute one show a year. Our shows are by default released under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license. All the software we use is Free software. All the code we develop is published in our gitlab repository. All the media is available via the feeds. We are going through an audit process to release the website code as well.

-

Governance.

-

HPR is entirely community driven. Policy decisions are proposed and discussed on the Mailing list, which is open to anyone to join. Mailing list discussions are brought to the attention of the listening community on the first Monday of the month in the HPR Community News show. This show is also open to anyone to participate in. The schedule for the Community News shows can be downloaded as an iCal calendar containing recording dates for the next 12 months. A reminder is also sent to the mailing list in the week before the recording.

-

Our hosting is kindly provided to us by Josh Knapp from AnHonestHost.com, and he has the last word in issues related to site security. A changing team of volunteers called the "admins" or "Janitors", deal with the day to day operation of HPR. Acting as the first point of contact, processing the shows, coordinating policy discussions, removing spam, updating the website, etc. They are contactable via the email account admin @ HPR. They have no more say over policy than anyone else. Anyone who has shown a long term dedication to the project and is trusted by the community, can become an admin. +

Governance.

+

HPR is entirely community driven. Policy decisions are proposed and discussed on the Mailing list, which is open to anyone to join. Mailing list discussions are brought to the attention of the listening community on the first Monday of the month in the HPR Community News show. This show is also open to anyone to participate in. The schedule for the Community News shows can be downloaded as an iCal calendar containing recording dates for the next 12 months. A reminder is also sent to the mailing list in the week before the recording.

+

Our hosting is kindly provided to us by Josh Knapp from AnHonestHost.com, and he has the last word in issues related to site security. A changing team of volunteers called the "admins" or "Janitors", deal with the day to day operation of HPR. Acting as the first point of contact, processing the shows, coordinating policy discussions, removing spam, updating the website, etc. They are contactable via the email account admin @ HPR. They have no more say over policy than anyone else. Anyone who has shown a long term dedication to the project and is trusted by the community, can become an admin.

-

See the section stuff you need to know for more information.

+

See the section stuff you need to know for more information.

Recent Policy Changes

-

Please support our Patrons.

+

Please support our Patrons.

Our hosting is kindly provided by Josh from AnHonestHost.com. We would appreciate it if you could donate to help reduce his costs in funding the hosting. He is also accepting bitcoins to 1KsxJr9HtsdaUeU7yaV9bk9bQi21UPBtUq

@@ -52,14 +52,14 @@
-

Contact.

+

Contact.

We are always looking for more hosts...

Don't forget to introduce yourself in your show.

-

4. Upload your show.

+

4. Upload your show.

Once you have your audio ready you can post your show by going to the Calendar page or press the ⇧Upload⇧ button.

@@ -149,12 +149,12 @@ More Information.

-

.

Questions ? +

.

Questions ?

Got any questions not covered here, then just email "admin" at "", and we’ll get in touch with you with all you need to know about getting your show published.
You can chat with other podcasters using IRC in the #oggcastplanet channel on the freenode.net network. Follow us on identi.ca (use the tag !hpr) and on Twitter (use the tag #hpr). We have a Facebook and LinkedIn group, so please join and spread the word.

-

.

Still Nervous +

.

Still Nervous

Fellow listeners like yourself contribute the shows and so we all know how hard it is to do that first show. You're probably worried that we won't like the topic. Well don't be, have a look at our archive to see how diverse the contributions have been. You're probably worried about the quality of your audio, that you sound funny, that English isn't your native language, that you suffer from a speech impediment, that your show has loads of ummms and awws in it, well don't be. We have plenty of hosts that fall into all these categories but continue to produce great shows.

@@ -173,7 +173,7 @@
-

Requested topics.

+

Requested topics.

This is a list of topics that have been requested by the community. Feel free to add it to the list by emailing admin at hpr or by tweeting us on @HPR.

0.3 Can I submit a show made for another podcast?

@@ -783,7 +783,7 @@