2 Commits

Author SHA1 Message Date
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
16 changed files with 1875 additions and 3 deletions

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>
<ul>

File diff suppressed because it is too large Load Diff

View File

@@ -3,7 +3,7 @@
<!--% PROCESS 'shared-listen-now.tpl.html' %-->
<!--% PROCESS "queries-episode.tpl.html" %-->
<!--% USE DBI(constants.driver) %-->
<!--% page_title = "HPR ~ Current comments on the shows" %-->
<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><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>
<header>
<h1>Contact</h1>

View File

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

View File

@@ -1,5 +1,6 @@
<!--% PROCESS 'shared-utils.tpl.html' %-->
<!--% PROCESS 'shared-avatar.tpl.html' %-->
<!--% page_title = "HPR ~ Hosts/Correspondents" %-->
<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 />
<!--% USE DBI(constants.driver) %-->

View File

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

View File

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

View File

@@ -1,5 +1,6 @@
<!--% PROCESS 'shared-episode-summary.tpl.html' %-->
<!--% PROCESS "queries-episodes.tpl.html" %-->
<!--% page_title = "HPR ~ All the shows" %-->
<h1>Complete Archive of Shows.</h1>
<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.

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,5 @@
<!--% PROCESS 'shared-utils.tpl.html' %-->
<!--% page_title = "HPR ~ Sitemap" %-->
<h1>Sitemap</h1>
<ul>
<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>
<h2>Subscribe to our Feeds</h2>
<p>

View File

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

View File

@@ -1,9 +1,18 @@
<!--% PROCESS 'shared-utils.tpl.html' %-->
<!--% USE date %-->
<!--% page_title = "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>
<html lang="en">
<head>
<title>Hacker Public Radio ~ The Technology Community Podcast</title>
<title><!--% page_title %--></title>
<!--% IF baseurl %-->
<base href="<!--% baseurl %-->">
<!--% END %-->
@@ -54,7 +63,8 @@
</div>
</header>
<main id="main_content" role="main">
<!--% INCLUDE $content %-->
<!--% content %-->
<!--% page_title = "acck" %-->
</main>
<footer role="contentinfo">
<hr class="no-css">
@@ -70,3 +80,4 @@
</footer>
</body>
</html>
<!--% END %-->