From ea491f36c7f81ed231444ed5e4a76c52b03434ac Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 3 Dec 2020 03:49:20 +0100 Subject: [PATCH] nieuws/feed: prefer article dates from metadata Frequently available since the previous commit. --- nieuws/feed/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nieuws/feed/index.php b/nieuws/feed/index.php index a5a5eee..0cd5ecb 100644 --- a/nieuws/feed/index.php +++ b/nieuws/feed/index.php @@ -29,8 +29,8 @@ foreach ($pages as $i => $page) { link ?> <?= $article->title ?> - dateiso ?> - dateiso ?> + meta['article:published_time'] ?? $article->dateiso ?> + meta['article:modified_time'] ?? $article->dateiso ?> teaser) { printf("\t\t%s\n", htmlspecialchars($article->teaser)); -- 2.30.0