8 Commits

Author SHA1 Message Date
e56592152f Merge pull request '[I332] Dynamically set page titles' (#333) from i332_Dynamically-set-page-titles into main
Reviewed-on: #333
2026-02-03 00:08:38 +00:00
5d4a7ad639 Merge branch 'main' into i332_Dynamically-set-page-titles 2026-02-02 19:03:46 -05:00
6e07ee5e0a Update templates/content-about.tpl.html
There is now no limit
2026-02-02 08:58:43 +00:00
bdf48827f0 Update site.cfg
The logic seems to be switched https://en.wikipedia.org/wiki/Boolean_data_type where a 0 = true and 1 = false.

Should this not be the other way around where 0 = false = off, and 1 = true = on.

Setting default to 1 as the site is now switched to Hobby public radio, and the robot picks up the default config.
2026-02-02 08:54:43 +00:00
27920e7b9f Merge pull request 'Allow for generation of Hobby Public Radio' (#279) from i274-hacker-to-hobbyist into main
Reviewed-on: #279
2026-02-01 15:18:45 +00:00
a9b757232f Add an individual html title to various pages 2026-01-31 14:16:44 -05:00
ef4302f8d4 Allow html title to be set dynamically
Each page content template can set a page_title variable.
2026-01-31 14:13:29 -05:00
4e9bc7e6c2 Set config to generate hobbypublicradio 2026-01-30 16:16:32 -05:00
17 changed files with 1876 additions and 7 deletions

View File

@@ -28,7 +28,7 @@ generator_email: robot.nospam@nospam.hackerpublicradio.org
# Is safe for work: 0 for true, 1 for false -- if true substitute # Is safe for work: 0 for true, 1 for false -- if true substitute
# variations of Hobby for Hacker # variations of Hobby for Hacker
is_sfw: 1 is_sfw: 1
# Configure the navigation menu and the content templates for each page # Configure the navigation menu and the content templates for each page
# of the site: # of the site:

View File

@@ -1,3 +1,4 @@
<!--% page_title = "HPR ~ About this community podcast" %-->
<h1 id="welcome">Welcome to HPR<a href="<!--% absolute_url(baseurl,'about.html#about') %-->">.</a></h1> <h1 id="welcome">Welcome to HPR<a href="<!--% absolute_url(baseurl,'about.html#about') %-->">.</a></h1>
<ul> <ul>
@@ -912,9 +913,6 @@ Your profile information is used on the website, in the RSS feeds, and on social
<li><strong>Do not paste un-rendored markup (HTML, Markdown, <li><strong>Do not paste un-rendored markup (HTML, Markdown,
RestructuredText)</strong> unless your intention is to have un-rendored RestructuredText)</strong> unless your intention is to have un-rendored
markup as shownotes.</li> markup as shownotes.</li>
<li>The amount you can enter is restricted to 4000 characters, but you can provide additional show notes if you wish.
Please add them to an full_shownotes.html file which you can expect to be served from
<!--% absolute_url(baseurl) %-->eps/hpr9999/full_shownotes.html</li>
</ul> </ul>
</li> </li>
</ul> </ul>

File diff suppressed because it is too large Load Diff

View File

@@ -3,7 +3,7 @@
<!--% PROCESS 'shared-listen-now.tpl.html' %--> <!--% PROCESS 'shared-listen-now.tpl.html' %-->
<!--% PROCESS "queries-episode.tpl.html" %--> <!--% PROCESS "queries-episode.tpl.html" %-->
<!--% USE DBI(constants.driver) %--> <!--% USE DBI(constants.driver) %-->
<!--% page_title = "HPR ~ Current comments on the shows" %-->
<h2>Comment Viewer</h2> <h2>Comment Viewer</h2>
<p>Because of the spammers we have had to turn on comment moderation. Sorry about the delay this will cause.</p> <p>Because of the spammers we have had to turn on comment moderation. Sorry about the delay this will cause.</p>
<p><a href="<!--% absolute_path(baseurl) %-->comments.rss">Subscribe</a> to the comment feed.</p> <p><a href="<!--% absolute_path(baseurl) %-->comments.rss">Subscribe</a> to the comment feed.</p>

View File

@@ -1,3 +1,4 @@
<!--% page_title = "HPR ~ Contact the Community" %-->
<article> <article>
<header> <header>
<h1>Contact</h1> <h1>Contact</h1>

View File

@@ -18,6 +18,7 @@
<!--% hosts = DBI.tie('hosts', 'hostid') %--> <!--% hosts = DBI.tie('hosts', 'hostid') %-->
<!--% this_host = hosts.$id %--> <!--% this_host = hosts.$id %-->
<!--% page_title = "HPR ~ Host: " _ this_host.host %-->
<h2 class="title">Correspondent</h2> <h2 class="title">Correspondent</h2>
<div id="host" class="lane"> <div id="host" class="lane">
<div id="host_id"> <div id="host_id">

View File

@@ -1,5 +1,6 @@
<!--% PROCESS 'shared-utils.tpl.html' %--> <!--% PROCESS 'shared-utils.tpl.html' %-->
<!--% PROCESS 'shared-avatar.tpl.html' %--> <!--% PROCESS 'shared-avatar.tpl.html' %-->
<!--% page_title = "HPR ~ Hosts/Correspondents" %-->
<h2 class="title">Correspondents</h2> <h2 class="title">Correspondents</h2>
<p>For more information on how to become a Correspondent see our <a href="<!--% absolute_url(baseurl) %-->../about.html#so_you_want_to_record_a_podcast">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_url(baseurl) %-->../about.html#so_you_want_to_record_a_podcast">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) %--> <!--% USE DBI(constants.driver) %-->

View File

@@ -1,3 +1,4 @@
<!--% page_title = "HPR ~ Download all the episodes" %-->
<article> <article>
<header> <header>
<h1>Download Archive</h1> <h1>Download Archive</h1>

View File

@@ -10,6 +10,7 @@
<!--% FOREACH episode IN episode_result %--> <!--% FOREACH episode IN episode_result %-->
<!--% in_window = ( episode.id > episode.latest || episode.id < ( episode.latest - 20 ) ? 0 : 1 ) %--> <!--% in_window = ( episode.id > episode.latest || episode.id < ( episode.latest - 20 ) ? 0 : 1 ) %-->
<!--% episode_navigation = step_navigation(baseurl,episode) %--> <!--% episode_navigation = step_navigation(baseurl,episode) %-->
<!--% page_title = "HPR" _ zero_pad_left(episode.id) _ "::" _ episode.title %-->
<article> <article>
<header> <header>
<h1>hpr<!--% zero_pad_left(episode.id) %--> :: <!--% episode.title %--></h1> <h1>hpr<!--% zero_pad_left(episode.id) %--> :: <!--% episode.title %--></h1>

View File

@@ -1,5 +1,6 @@
<!--% PROCESS 'shared-episode-summary.tpl.html' %--> <!--% PROCESS 'shared-episode-summary.tpl.html' %-->
<!--% PROCESS "queries-episodes.tpl.html" %--> <!--% PROCESS "queries-episodes.tpl.html" %-->
<!--% page_title = "HPR ~ All the shows" %-->
<h1>Complete Archive of Shows.</h1> <h1>Complete Archive of Shows.</h1>
<p> <p>
All this information is available to the public. Scrape if you wish but if we can format the data for you then we're happy to help. All this information is available to the public. Scrape if you wish but if we can format the data for you then we're happy to help.

View File

@@ -1,3 +1,4 @@
<!--% page_title = "HPR ~ Find a show" %-->
<section id="search"> <section id="search">
<header> <header>
<h1>Search HPR.</h1> <h1>Search HPR.</h1>

View File

@@ -1,6 +1,7 @@
<!--% PROCESS 'shared-utils.tpl.html' %--> <!--% PROCESS 'shared-utils.tpl.html' %-->
<!--% PROCESS "queries-series.tpl.html" %--> <!--% PROCESS "queries-series.tpl.html" %-->
<!--% USE DBI(constants.driver) %--> <!--% USE DBI(constants.driver) %-->
<!--% page_title = "HPR ~ Show series" %-->
<h1 class="title">In-Depth Series</h1> <h1 class="title">In-Depth Series</h1>
<div class="lane stack"> <div class="lane stack">
<!--% FOREACH series IN DBI.query(query_episodes) %--> <!--% FOREACH series IN DBI.query(query_episodes) %-->

View File

@@ -6,6 +6,7 @@
%--> %-->
<!--% series_result = query_series.execute(id) %--> <!--% series_result = query_series.execute(id) %-->
<!--% FOREACH series IN series_result %--> <!--% FOREACH series IN series_result %-->
<!--% page_title = "HPR ~ Series: " _ series.name %-->
<h1 class="title">In-Depth Series: <!--% series.name %--></h1> <h1 class="title">In-Depth Series: <!--% series.name %--></h1>
<ul> <ul>
<li>Number of episodes: <!--% series.number_of_episodes %--></li> <li>Number of episodes: <!--% series.number_of_episodes %--></li>

View File

@@ -1,4 +1,5 @@
<!--% PROCESS 'shared-utils.tpl.html' %--> <!--% PROCESS 'shared-utils.tpl.html' %-->
<!--% page_title = "HPR ~ Sitemap" %-->
<h1>Sitemap</h1> <h1>Sitemap</h1>
<ul> <ul>
<li><a href="<!--% hub_baseurl %-->calendar.php"><strong>⇧Upload⇧</strong></a> ← Upload Your Show</li> <li><a href="<!--% hub_baseurl %-->calendar.php"><strong>⇧Upload⇧</strong></a> ← Upload Your Show</li>

View File

@@ -1,3 +1,4 @@
<!--% page_title = "HPR ~ Subscribe to our feeds" %-->
<h1>RSS Syndication</h1> <h1>RSS Syndication</h1>
<h2>Subscribe to our Feeds</h2> <h2>Subscribe to our Feeds</h2>
<p> <p>

View File

@@ -46,6 +46,7 @@
<!--% episode_result = query_episodes.execute(id, id, id, id, id) %--> <!--% episode_result = query_episodes.execute(id, id, id, id, id) %-->
<!--% FOREACH episode IN episode_result %--> <!--% FOREACH episode IN episode_result %-->
<!--% episode_navigation = step_navigation(baseurl,episode,"twt") %--> <!--% episode_navigation = step_navigation(baseurl,episode,"twt") %-->
<!--% page_title = "TWT" _ episode.id _ "::" _ episode.title %-->
<article> <article>
<header> <header>
<h1><!--% episode.id %--> :: <!--% episode.title %--></h1> <h1><!--% episode.id %--> :: <!--% episode.title %--></h1>

View File

@@ -1,9 +1,18 @@
<!--% PROCESS 'shared-utils.tpl.html' %--> <!--% PROCESS 'shared-utils.tpl.html' %-->
<!--% USE date %--> <!--% USE date %-->
<!--% page_title = make_sfw(is_sfw, "Hobby", "Hacker") _ " Public Radio (HPR) ~ The Technology Community Podcast" %-->
<!--% WRAPPER page
# The default page_title variable set above can be overridden
# in each individual $content template (i.e. templates/conten-<template name>.tpl.html)
# processed below.
%-->
<!--% PROCESS $content %-->
<!--% END %-->
<!--% BLOCK page %-->
<!DOCTYPE HTML> <!DOCTYPE HTML>
<html lang="en"> <html lang="en">
<head> <head>
<title><!--% make_sfw(is_sfw, "Hobby", "Hacker") %--> Public Radio ~ The Technology Community Podcast</title> <title><!--% page_title %--></title>
<!--% IF baseurl %--> <!--% IF baseurl %-->
<base href="<!--% baseurl %-->"> <base href="<!--% baseurl %-->">
<!--% END %--> <!--% END %-->
@@ -54,7 +63,8 @@
</div> </div>
</header> </header>
<main id="main_content" role="main"> <main id="main_content" role="main">
<!--% INCLUDE $content %--> <!--% content %-->
<!--% page_title = "acck" %-->
</main> </main>
<footer role="contentinfo"> <footer role="contentinfo">
<hr class="no-css"> <hr class="no-css">
@@ -70,3 +80,4 @@
</footer> </footer>
</body> </body>
</html> </html>
<!--% END %-->