From 4e711265ff0a821c4ceb88467c54576b23df17d2 Mon Sep 17 00:00:00 2001 From: Greg Sarjeant <1686767+gsarjeant@users.noreply.github.com> Date: Fri, 13 Jun 2025 17:42:02 -0400 Subject: [PATCH] Well I sure botched the feeds. --- templates/feed/atom.php | 13 ++++++++----- templates/feed/rss.php | 8 +++++++- templates/main.php | 16 +++++++++++++--- 3 files changed, 28 insertions(+), 9 deletions(-) diff --git a/templates/feed/atom.php b/templates/feed/atom.php index 892af8b..3c92864 100644 --- a/templates/feed/atom.php +++ b/templates/feed/atom.php @@ -3,16 +3,19 @@ siteTitle); $siteUrl = htmlspecialchars($config->baseUrl); -$basePath = $siteUrl . htmlspecialchars($config->basePath); +$basePath = htmlspecialchars($config->basePath); $updated = date(DATE_ATOM, strtotime($ticks[0]['timestamp'] ?? 'now')); header('Content-Type: application/atom+xml; charset=utf-8'); echo '' . "\n"; ?> - <?= $siteTitle ?> - - + <?= "$siteTitle Atom Feed" ?> + + @@ -27,7 +30,7 @@ echo '' . "\n"; [$hour, $minute, $second] = $timeParts; $tickPath = "$year/$month/$day/$hour/$minute/$second"; - $tickUrl = htmlspecialchars($basePath . "tick/$tickPath"); + $tickUrl = htmlspecialchars($siteUrl . $basePath . "tick/$tickPath"); $tickTime = date(DATE_ATOM, strtotime($tick['timestamp'])); $tickText = htmlspecialchars($tick['tick']); ?> diff --git a/templates/feed/rss.php b/templates/feed/rss.php index 4822a36..79a6ff3 100644 --- a/templates/feed/rss.php +++ b/templates/feed/rss.php @@ -10,7 +10,13 @@ echo '' . "\n"; My tkr - + + baseUrl . $config->basePath) ?> /> My tkr en-us diff --git a/templates/main.php b/templates/main.php index e791827..61e5966 100644 --- a/templates/main.php +++ b/templates/main.php @@ -8,10 +8,20 @@ <?= $config->siteTitle ?> - + cssId)): ?> - - + + + +