diff options
Diffstat (limited to '_site/feed.xml/index.php')
-rw-r--r-- | _site/feed.xml/index.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/_site/feed.xml/index.php b/_site/feed.xml/index.php index a1fa3df..3b03dad 100644 --- a/_site/feed.xml/index.php +++ b/_site/feed.xml/index.php @@ -30,11 +30,17 @@ $list = getArticlesList(); <copyright><?= date('Y') ?> Blogchain Authors, All rights reserved.</copyright> <language>en-us</language> <?php $index = 0; foreach ($list as $item): ?> - <?php if ($index < 10): ?> + <?php if ($index < 10 && !$item["admin"]): ?> <item> <title><?= $item["title"] ?></title> <link>https://blogchain.minteck.ro.lt/article/<?= $item["id"] ?></link> <description><?= $item["content"]["full"] ?></description> + <pubdate><?php + + $dt = DateTime::createFromFormat('YmdHis', $item["date"] . "000000"); + echo $dt->format("D, d M Y H:i:s T"); + + ?></pubdate> </item> <?php endif; ?> <?php $index++; endforeach; ?> |