Compare commits

...

9 Commits

Author SHA1 Message Date
73740b8ffb Merge pull request '[i223] add day of week to each episode' (#227) from i223-add-day-of-week-to-each-episode into main
Reviewed-on: #227
2024-10-27 19:29:37 +00:00
c1078d9b9c
Replace day_from_date MACRO with day_and_date MACRO
Refactor content templates to use day_and_date MACRO
2024-10-27 13:04:19 -04:00
27caa97c7d
Add MACRO day_and_date
Formats a string date to <day of week>, <YYYY-mm-dd>
2024-10-27 13:01:14 -04:00
c32a343728
Simplify MACRO day_from_date 2024-10-27 12:56:47 -04:00
7d07b8b814
Add weekday of episode to release information displayed 2024-10-27 09:48:45 -04:00
a38c8e2705
Add MACRO day_from_date 2024-10-23 07:29:58 -04:00
d456de5663 Update site.cfg
Changed the mediaurl to point to the CCDN.
2024-10-22 12:10:21 +00:00
3ba76e8cd3 Update templates/content-about.tpl.html 2024-10-22 11:05:01 +00:00
c1be07780f Merge pull request '[i222] fix css' (#224) from i222-fix-css into main
Reviewed-on: #224
2024-10-20 15:26:27 +00:00
7 changed files with 16 additions and 6 deletions

View File

@ -31,7 +31,7 @@ content: page.tpl.html
baseurl: https://hackerpublicradio.org/
http_baseurl: http://hackerpublicradio.org/
hub_baseurl: https://hub.hackerpublicradio.org/
media_baseurl: https://archive.org/download/hpr$eps_id/
media_baseurl: https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr$eps_id/
generator_name: The HPR Robot
generator_email: robot.nospam@nospam.hackerpublicradio.org

View File

@ -66,8 +66,9 @@
<p>See the section <a href="<!--% absolute_url(baseurl,'about.html#stuff_you_need_to_know') %-->" >stuff you need to know</a> for more information.</p>
<h3 id="recent_policy_changes">Recent Policy Changes</h3>
<ul>
<li><a href="https://lists.hackerpublicradio.com/pipermail/hpr/2024-October/004791.html">Clarification that contributions are CC BY-SA 4.0 unless otherwise stated</a></li>
<li><a href="https://lists.hackerpublicradio.com/pipermail/hpr/2021-July/004191.html">HPR will move #oggcastplanet on libera,
and we will also include links to the matrix, and <a href="https://botsin.space/@hpr">Mastodon</a> channel</a></li>
and we will also include links to the matrix</a>, and <a href="https://botsin.space/@hpr">Mastodon</a> channel</li>
<li><a href="https://lists.hackerpublicradio.com/pipermail/hpr/2021-August/004200.html">Existing shows will be
flagged with the current version and new shows will default to "Attribution 4.0 International (CC BY 4.0)"</a></li>
<li><a href="https://lists.hackerpublicradio.com/pipermail/hpr/2021-November/004328.html">The Intro Outro will be

View File

@ -17,7 +17,7 @@
<p class="meta"><!--% episode_navigation %-->
</p>
<p><!--% show_avatar(episode.hostid, episode.host) %-->
Hosted by <a href="<!--% absolute_path(baseurl) %-->correspondents/<!--% zero_pad_left(episode.hostid) %-->.html"><!--% episode.host %--></a> on <span><!--% episode.date %--></span> is flagged as <span><!--% display_explicit(episode.explicit) %--></span> and is released under a <span><!--% episode.license %--> license</span>. <br>
Hosted by <a href="<!--% absolute_path(baseurl) %-->correspondents/<!--% zero_pad_left(episode.hostid) %-->.html"><!--% episode.host %--></a> on <span><!--% day_and_date(episode.date) %--></span> is flagged as <span><!--% display_explicit(episode.explicit) %--></span> and is released under a <span><!--% episode.license %--> license</span>. <br>
<!--% display_tags(episode.tags) %-->
<label>Comments: </label><!--% display_comments_tally(episode.id, episode.eps_tally) %--> <br>

View File

@ -55,7 +55,7 @@
<h1><a href="<!--% absolute_path(baseurl) %-->eps/hpr<!--% zero_pad_left(latest_episodes.id) %-->/index.html">hpr<!--% latest_episodes.id %--> :: <!--% latest_episodes.title %--></a></h1>
<h3><!--% latest_episodes.summary%--></h3>
<p class="meta"$><!--% show_avatar(latest_episodes.hostid, latest_episodes.host, host_cnt) %-->
Hosted by <a href="<!--% absolute_path(baseurl) %-->correspondents/<!--% zero_pad_left(latest_episodes.hostid) %-->.html"><!--% latest_episodes.host %--></a> on <!--% latest_episodes.date %--> is flagged as <!--% display_explicit(latest_episodes.explicit) %--> and released under a <!--% latest_episodes.license %--> license. <br>
Hosted by <a href="<!--% absolute_path(baseurl) %-->correspondents/<!--% zero_pad_left(latest_episodes.hostid) %-->.html"><!--% latest_episodes.host %--></a> on <!--% day_and_date(latest_episodes.date) %--> is flagged as <!--% display_explicit(latest_episodes.explicit) %--> and released under a <!--% latest_episodes.license %--> license. <br>
<!--% display_tags(latest_episodes.tags) %-->
<span><!--% show_series(latest_episodes.series, latest_episodes.seriesid) %--></span>
<span><label>Comments: </label><!--% display_comments_tally(latest_episodes.id, latest_episodes.eps_tally) %--></span><br>

View File

@ -53,7 +53,7 @@
<p class="meta"><!--% episode_navigation %-->
</p>
<p><!--% show_avatar(episode.hostid, episode.host) %-->
Hosted by <a href="<!--% absolute_path(baseurl) %-->correspondents/<!--% zero_pad_left(episode.hostid) %-->.html"><!--% episode.host %--></a> on <span><!--% episode.date %--></span> is flagged as <span><!--% display_explicit(episode.explicit) %--></span> and is released under a <span><!--% episode.license %--> license</span>. <br>
Hosted by <a href="<!--% absolute_path(baseurl) %-->correspondents/<!--% zero_pad_left(episode.hostid) %-->.html"><!--% episode.host %--></a> on <span><!--% day_and_date(episode.date) %--></span> is flagged as <span><!--% display_explicit(episode.explicit) %--></span> and is released under a <span><!--% episode.license %--> license</span>. <br>
<!--% display_tags(episode.tags) %--> <br>
<!--% listen_now(episode, "twat", baseurl, media_baseurl) %-->
<!--% display_listen_in(episode.id, "twat") %-->

View File

@ -35,7 +35,7 @@ or
<!--% END %-->
<!--% MACRO show_meta(show, hide_tags) BLOCK %-->
<span><label>Released:</label> <!--% show.date %-->.</span>
<span><label>Released:</label> <!--% day_and_date(show.date) %-->.</span>
<span><label>Duration:</label> <!--% display_episode_duration(show.duration) %-->.</span>
<span><label>Flag:</label> <!--% display_explicit(show.explicit) %-->.</span>
<span><!--% show_series(show.series, show.seriesid) %--></span> <br>

View File

@ -49,6 +49,15 @@
<!--% iso8601_date.format(date_to_format) %-->
<!--% END %-->
<!--% MACRO day_from_date(eps_date) BLOCK %-->
<!--% USE eps_day = date(format => '%A', locale => 'en_US', gmt => 1) %-->
<!--% eps_day.format("$eps_date 0:0:0") %-->
<!--% END %-->
<!--% MACRO day_and_date(eps_date) BLOCK %-->
<!--% day_from_date(eps_date) %-->, <!--% eps_date %-->
<!--% END %-->
<!--% MACRO tag_to_id(tag, is_index) BLOCK %-->
<!--% tag = tag.replace('\s+','_') %-->
<!--% IF is_index %-->