1
0
forked from HPR/hpr_generator
Commit Graph

63 Commits

Author SHA1 Message Date
rho_n fcd73c05d7 Format latest lane on main landing page 2025-07-16 20:48:51 -04:00
rho_n 71c1c46cfb Add latest comments to latest lane on main landing page 2025-07-16 10:42:05 -04:00
rho_n 991f088ded Update lastest episodes section to new layout 2025-07-15 21:45:31 -04:00
rho_n ebe230ee0a Initial formatting of swim lanes on main landing page 2025-07-15 21:06:33 -04:00
Paul Jewell 86e1d73085 Remove MySQL specific code from site generation code
- site-generator is generic, so no changes.
 - removed mysql information from site.cfg.
 - Updated template files to call sqlite queries directly.
 - Renamed the query files - remove sqlite from file names.
 - Deleted MySQL specific template files.
2025-04-04 10:28:31 +01:00
ken_fallon bf7178b79f Remove notes from the home page 2025-02-10 16:16:39 +01:00
rho_n f58e25a685 Move location of transcription text
Move from after the show notes to after the show duration.
2025-01-23 22:42:40 -05:00
rho_n f135b1119a Change Today with a Techie href id 2025-01-21 23:59:23 -05:00
rho_n 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
rho_n 7d07b8b814 Add weekday of episode to release information displayed 2024-10-27 09:48:45 -04:00
rho_n 8f31864b83 Add id attribute to previous five weeks section 2024-10-12 11:06:41 -04:00
Dave Morriss e5b5aac104 A further fix to the free slot algorithm
templates/content-index.tpl.html: the `TT²` algorithm can be simplified
    because the new query returns less. We get the date of the show
    before the free slot, and can increment it differently depending on
    whether the previous show is on a Friday or not - catering for
    weekends in other words!

templates/queries-index-mysql.tpl.html,
templates/queries-index-sqlite.tpl.html: using a 'find unused index
    numbers' query available in many places on the Internet, but
    modified to return the id number and date for the show *before* the
    next free slot.
2023-11-17 18:23:22 +00:00
Dave Morriss 097b50b30b Next free slot algorithm now in TT² form
templates/content-index.tpl.html: Now contains TT² code and an in-built
    query to determine the next free slot. No need for an external
    query. Old code that used to use this has been deleted.

templates/queries-index-mysql.tpl.html,
templates/queries-index-sqlite.tpl.html: Old queries called
    'query_next_available_episode' removed since no longer needed.
2023-10-29 17:32:02 +00:00
Dave Morriss 8325b2c0d1 Unwanted items commented out 2023-10-29 17:28:04 +00:00
Dave Morriss 366729a827 Fixing days to next free slot
templates/queries-index-mysql.tpl.html,
templates/queries-index-sqlite.tpl.html: Enhanced the query that finds
    the next free slot (query_next_available_episode). Also made it
    compute the days to the slot from the current day. The query returns
    data for calling Date::Calc to compute the number of days, but this
    calculation is no longer necessary. Next release will remove this.

templates/content-index.tpl.html: The number of days to the next free
    slot is reported here. The original Date::Calc computation which did
    this is no longer needed and has been removed since the query
    (query_next_available_episode) does it.
2023-10-10 17:55:44 +01:00
ken_fallon d1832ae619 Changes recommended by Dave - missing php and typo 2023-09-06 19:35:22 +02:00
ken_fallon 7009533e25 Fixing invalid links in the templates. 2023-09-03 17:51:03 +02:00
ken_fallon 726ac57989 Changes to get the site working 2023-06-17 22:04:35 +02:00
ken_fallon c9510516f1 Change php_baseurl to hub_baseurl in the template files 2023-05-31 10:25:17 +02:00
Ken Fallon db5774f642 Added support for having a different php FQDN location from the main site via php_baseurl 2023-05-29 16:11:59 +02:00
rho_n e7fe824302 Fix calculation of the days until next available episode timeslot
Do all date calulation in DB instead of naively adding 1 to the
day that is returned.
2023-05-18 09:04:04 -04:00
rho_n 1c94855de2 Update location of comments
The listen_now MACRO formating changed, requiring an update to the postion of the comments reference.
2023-04-02 08:50:04 -04:00
rho_n c6e909523f Add requested audio links
Have links to an episodes auido files appear in the Last 5 weeks section of the index page, on the full index page, and on individual host pages.
2023-04-02 07:24:43 -04:00
Ken Fallon 5369bea657 This reflects the change to move the "play" button to the top of the episode 2023-03-31 14:02:49 +02:00
Gordon Stanton 610e91ea9f Added lazy loading attribute to images in show notes. 2023-03-19 22:51:21 +11:00
rho_n aabeca44f5 Refactor templates to use show_avatar MACRO 2023-03-13 23:15:46 -04:00
Gordon Stanton ce4aefe828 Renamed macro get_avatar to get_avatar_src as per suggestion.
Moved host_thumb macro into shared avatar template file.
Made condition of lazy loading a parameter.
2023-03-12 18:48:51 +11:00
Gordon Stanton c744bdf175 Moved host thumbnail image tag to separate template file.
Added loading="lazy" to image tag.
Changed alt text to show host username.
2023-03-05 02:07:03 +11:00
rho_n 927424901b Add show_transcript MACRO to index and episode pages 2023-02-24 18:58:56 -05:00
rho_n 6f28bb2a16 Refactor MySQL database specific SQL 2022-11-27 13:54:14 -05:00
rho_n 4e8edf2640 Merge branch 'main' into MySQL 2022-11-11 20:27:47 -05:00
rho_n f0fa21ae45 Implement call for shows feature
Add display_call_for_shows MACRO. Update index template to include
call to display_call_for_shows.
2022-11-10 22:14:55 -05:00
rho_n aad77f3c78 Convert index page queries from SQLite to MySQL 2022-10-20 23:24:56 -04:00
rho_n 0837e11bfe Include announcement template in index template 2022-10-16 18:56:13 -04:00
rho_n 1d4e6e15b7 Refactor templates to use media_path MACRO 2022-10-01 13:42:46 -04:00
rho_n 991b3dcec1 Update SQL query to order results by id 2022-09-21 21:18:48 -04:00
rho_n c6e7a3c239 Refactor templates to use listen_now MACRO 2022-09-18 16:23:35 -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 38d2e7c363 Calculate date till next available episode slot 2022-09-05 20:26:12 -04:00
rho_n 67a8a2bfa4 Add MACRO display_listen_in 2022-09-02 18:21:15 -04:00
rho_n cfd463d2b0 Add MACRO display_comments_tally 2022-09-01 23:05:59 -04:00
rho_n 91cbc81a12 Add MACRO display_tags 2022-09-01 22:58:24 -04:00
rho_n 76b976732b Add comment tally to index page 2022-08-31 20:43:43 -04:00
rho_n e2cf52af6e Use MACRO display_episode_duration in templates 2022-08-29 21:59:24 -04:00
rho_n 02eb8313d3 Fix links in intro text of index page 2022-08-18 21:26:57 -04:00
rho_n ff2ced6774 Fix capitalization of introduction text on index page 2022-08-18 21:19:32 -04:00
rho_n af86b7114a Remove references to Report missing tags page
This project is finished, and no longer relevant.
2022-08-16 18:39:05 -04:00
rho_n b64ffe7f46 Fix path to correspondents pages 2022-08-07 20:04:20 -04:00
rho_n 1b9c3c080c Add MACRO display_explicit 2022-08-07 19:54:47 -04:00
rho_n a23ca24bd6 Fix MACRO show_series link to series page 2022-08-06 10:48:53 -04:00