Commit Graph

39 Commits

Author SHA1 Message Date
rho_n 9e711c6620 Merge branch 'main' into i274-hacker-to-hobbyist 2026-01-29 21:01:40 -05:00
rho_n ad21bb045c Handle all future ordinal years for New Year show 2025-12-17 22:22:26 -05:00
rho_n fc12c7ae5c Add MACRO to get ordinal year of the new year show
Calculate the ordinal value of difference between the current year
and 2011 (the first year of the New Year Show)
2025-12-16 19:01:33 -05:00
rho_n c349abfded Calculate the start and end dates for the New Year show 2025-12-16 19:01:33 -05:00
rho_n b850c51e4f Change variable names to twt_... 2025-11-02 00:58:51 -04:00
rho_n b5755ddedb Rename arrow icons 2025-10-31 09:33:00 -04:00
rho_n a8dc69d7ad Include arrow icon SVG directly in the html
This optimizes both the load time of the icons and allows them
to be modified via CSS.
2025-10-30 22:15:18 -04:00
rho_n c4d94bb019 Add aria labels to episode navigation 2025-10-25 19:44:10 -04:00
rho_n fb46c13394 First cut at navigation button style 2025-10-25 16:21:55 -04:00
rho_n fc1dedf4b2 Allow for generation of Hobby Public Radio 2025-09-11 12:55:24 -04:00
rho_n 15547a2e87 Change Today with a Techie folder name
Change name to twt$eps_id
Fix media_path to call Today with a Techie shows from the CCDN.
2025-01-21 23:58:23 -05:00
rho_n 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
rho_n c32a343728 Simplify MACRO day_from_date 2024-10-27 12:56:47 -04:00
rho_n a38c8e2705 Add MACRO day_from_date 2024-10-23 07:29:58 -04:00
rho_n aaaaa29d8e Add macro tag_to_id 2024-09-15 15:42:46 -04:00
Dave Morriss ccba560ee3 Setting up static RSS feeds
site-generator: Changed the routine used to generate entities in
    'HTML::Entities'; see filter function 'xml_entity'

site.cfg: Added root variable 'http_baseurl' which defines the base URL
    using 'http'

templates/rss.tpl.xml: RSS template defining the channel and inserting
    the 'item' definitions; adjusted to be in step with the PHP version.

templates/shared-item.tpl.xml: RSS template used for each 'item' in an
    RSS feed; contains a call to 'HTML::Strip' which turns off the
    addition of spaces when removing tags; adjusted to be in step with
    the PHP version.

templates/shared-utils.tpl.html: Macro collection used by other
    templates; addition of temporay macro 'display_explicit_feed_2'
    which generates 'Yes/No' strings to be in step with the PHP version.
2024-05-23 20:14:42 +01:00
Dave Morriss b4448caf16 Fixing 'absolute_url'
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.
2023-09-09 17:54:19 +01:00
Dave Morriss dc138596ea Fixing issue #140
site-generator:

    Cosmetic adjustments. Additions to the POD documentation.
    Additions to module list.
    Additions to work better with UTF-8.
    Addition of functions 'parse_csv' and 'xml_entity'

templates/queries-episodes-sqlite.tpl.html:
templates/shared-utils.tpl.html:

    Cosmetic changes

templates/rss-query-hpr-mysql.tpl.xml:
templates/rss-query-hpr-sqlite.tpl.xml:
templates/rss-query-hpr_total-mysql.tpl.xml:
templates/rss-query-hpr_total-sqlite.tpl.xml:

    Enhancements to allow the query to collect the audio length from the
    'assets' table. The audio file extension is passed as an argument to
    the 'execute' statement.

templates/rss.tpl.xml:

    Cosmetic changes
    Changed one 'php' URL to 'html'.

templates/shared-episode-summary.tpl.html:

    Change to 'display_tags' macro to turn the 'eps.tags' field into
    a list of links. This works, but needs further development because
    using the tag strings as anchor ids is not reliable.

templates/shared-item.tpl.xml:

    Cosmetic changes.
    Addition of filter 'HTML.strip' which is used as a means of removing
    HTML tags from '<itunes:summary>' strings.
    Using new filter 'xml_entity' which converts all non-ASCII
    characters in the notes to numeric hexadecimal entities for
    '<itunes:summary>'.
    The '<enclosure>' tag now uses 'episode.length' rather than
    'episode.duration' which has been extracted from the 'assets' table.
2023-08-19 13:34:50 +01:00
Dave Morriss 31fed34212 Fixes to "step navigation", etc
public_html/css/hpr.css: Commented out the 'font-size: 75%;' in the CSS
    definition for '#maincontent footer p'. It was this that shrank the
    lower "step navigation" list in comparison to the upper one. The
    upper is in a '<header>' block and the lower in a '<footer>' block.

templates/content-episode.tpl.html: Fixed a typo.

templates/content-theme.tpl.html: Changed "This can be added" to "This
    is automatically added"

templates/queries-episode-sqlite.tpl.html: Fixed a transcription error
    from the 'mysql' version

templates/shared-utils.tpl.html: Modified the layout of the
    'step_navigation' macro to remove tabs which are being copied to the
    HTML. Just a minor cosmetic issue. Added a Vim modeline to the file
    to help with this.
2023-07-31 15:27:17 +01:00
ken_fallon 726ac57989 Changes to get the site working 2023-06-17 22:04:35 +02:00
rho_n 59549daa63 Fix archive.org paths in media_path MACRO 2023-02-24 18:55:37 -05:00
rho_n d437e66f0e Update media_path MACRO for archive.org transciption files
The whisper transcription files are stored one directory
deeper on archive.org. Add checks and correct path when
passed txt, srt, or vtt media_type.
2023-02-12 10:53:50 -05:00
rho_n e4463dc5ba Zero pad the day's date 2022-10-08 08:44:47 -04:00
rho_n fb70ae6253 Add media_path MACRO to shared utilities
Generate the full URL of an audio file.
2022-10-01 13:23:36 -04:00
rho_n 64ae9c4f86 Refactor media_baseurl MACRO to media_basepath MACRO
Prevent name collision with media_basepath root_template/page property
of same name. Also fix application of trailing forward slash to path
based on existence of baseurl property.
2022-10-01 13:18:35 -04:00
rho_n b0d31ee507 Allow user to modify zero_pad_left MACRO's padding
Add optional pad length argument
2022-10-01 12:51:11 -04:00
rho_n 2eaaa11a69 Fix MACRO step_navigation
Check for existence of folder arg instead of empty value.
2022-09-19 22:00:18 -04:00
rho_n 3723303e31 Fix absolute path for media links 2022-09-18 19:21:19 -04:00
rho_n c817e3a17a Add MACRO media_baseurl
Allow the audio files to be served from a different host
2022-09-18 16:18:05 -04:00
rho_n dbd9f8e973 Integrate twat episodes
Add twat shows to the full episodes index, the host pages.
Add individule twat episodes.
2022-09-17 17:28:39 -04:00
rho_n 414bae101a Add MACRO display_episode_duration
Format duration as hh:mm:ss
2022-08-29 21:54:42 -04:00
rho_n 582f155ca1 Add MACRO format_feed_date
Display publication date in preferred format for feeds.
2022-08-17 15:50:03 -04:00
rho_n dba0ec8485 Add MACRO display_explicit_feed
The explicit value for RSS feeds is yes or no versus Clean or Explicit
used in the html pages.
2022-08-17 15:47:39 -04:00
rho_n 8eda6ca9a8 Fix MACRO step_navigation
absolute_path MACRO was named incorrectly and baseurl must be
passed into macro.
2022-08-07 21:04:59 -04:00
rho_n 1b9c3c080c Add MACRO display_explicit 2022-08-07 19:54:47 -04:00
rho_n 541a79265a Add MACRO step_navigation 2022-08-07 14:26:05 -04:00
rho_n dcc0f3d6b0 Add absolute_path MACRO
Used with baseurl to make a path relative or absolute.
2022-08-05 15:49:00 -04:00
rho_n e250581f3c Add display_choice macro
Display custom messages depending on a boolean integer value.
2022-08-04 19:31:35 -04:00
rho_n 858bf058ff Add zero_pad_left macro
Pad left with four zeros.
2022-07-31 21:33:54 -04:00