diff options
author | Minteck <46352972+Minteck@users.noreply.github.com> | 2021-07-01 00:54:32 +0200 |
---|---|---|
committer | Minteck <46352972+Minteck@users.noreply.github.com> | 2021-07-01 00:54:32 +0200 |
commit | 1d62401c897a5ba82d0def92d97d09195a6d676f (patch) | |
tree | d26f11765a4eee20ac4867d5b77794fcdcaac641 /_site/feed.xml/index.php | |
parent | 1f23d65f32e37d0c6d703951d6735c9926f8521c (diff) | |
download | unchainedtech-1d62401c897a5ba82d0def92d97d09195a6d676f.tar.gz unchainedtech-1d62401c897a5ba82d0def92d97d09195a6d676f.tar.bz2 unchainedtech-1d62401c897a5ba82d0def92d97d09195a6d676f.zip |
Fixed stuff + official logo
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; ?> |