nieuws/feed: represent last update by publish date
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 25 Aug 2018 22:18:10 +0000 (00:18 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 25 Aug 2018 22:18:10 +0000 (00:18 +0200)
File modification time is affected by any write, not just significant
changes as the specs demand.  As some readers show only updated in
overviews, prefer the stable creation date for now, disregarding any
later edits.

nieuws/feed/index.php

index eff920365409f891b15d496dd1674119e82fb377..128aa5acc9561d665ffde7fbfd05211cb823d19d 100644 (file)
@@ -29,7 +29,7 @@ foreach ($pages as $i => $page) {
                <link href="/<?= $article->link ?>" />
                <title><?= $article->title ?></title>
                <published><?= $article->dateiso ?></published>
-               <updated><?= $article->lastiso ?></updated>
+               <updated><?= $article->dateiso ?></updated>
                <content type="html"><?= htmlspecialchars($article->body) ?></content>
 <?php
        if ($article->thumb) {