diff options
author | Minteck <nekostarfan@gmail.com> | 2021-08-04 16:56:12 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-08-04 16:56:12 +0200 |
commit | 896fa7c96856142f844d958b049d5432f511641c (patch) | |
tree | d8bbbe327939ade9bd13276c6b4c6105adf95323 /_site/feed.xml/index.php | |
parent | 7df2fb3f5ee0ac5bd89e127c86ad0c2d6de126d1 (diff) | |
download | unchainedtech-896fa7c96856142f844d958b049d5432f511641c.tar.gz unchainedtech-896fa7c96856142f844d958b049d5432f511641c.tar.bz2 unchainedtech-896fa7c96856142f844d958b049d5432f511641c.zip |
v2.0
Diffstat (limited to '_site/feed.xml/index.php')
-rw-r--r-- | _site/feed.xml/index.php | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/_site/feed.xml/index.php b/_site/feed.xml/index.php index dfb6da7..94d3cd4 100644 --- a/_site/feed.xml/index.php +++ b/_site/feed.xml/index.php @@ -1,49 +1,49 @@ -<?php - -header("Content-Type: application/xml"); -echo('<?xml version="1.0" encoding="UTF-8" ?>'); - -require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/markdown.php"; -$Parsedown = new Parsedown(); - -require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/articles/getlist.php"; -$list = getArticlesList(); - -?> - -<rss version="2.0"> - - <!-- - - This is UnchainedTech's RSS feed! - Only the last 10 articles are shown to preserve your and my bandwidth. - - UnchainedTech is - (c) UnchainedTech Authors, All rights reserved. - - --> - - <channel> - <title>UnchainedTech</title> - <link>https://unchainedtech.minteck.ro.lt</link> - <description>UnchainedTech is a tech-centric blog written by two people on their free time</description> - <copyright><?= date('Y') ?> UnchainedTech Authors, All rights reserved.</copyright> - <language>en-us</language> - <?php $index = 0; foreach ($list as $item): ?> - <?php if ($index < 10 && !$item["admin"]): ?> - <item> - <title><?= $item["title"] ?></title> - <link>https://unchainedtech.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; ?> - </channel> - +<?php
+
+header("Content-Type: application/xml");
+echo('<?xml version="1.0" encoding="UTF-8" ?>');
+
+require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/markdown.php";
+$Parsedown = new Parsedown();
+
+require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/articles/getlist.php";
+$list = getArticlesList();
+
+?>
+
+<rss version="2.0">
+
+ <!--
+
+ This is UnchainedTech's RSS feed!
+ Only the last 10 articles are shown to preserve your and my bandwidth.
+
+ UnchainedTech is
+ (c) UnchainedTech Authors, All rights reserved.
+
+ -->
+
+ <channel>
+ <title>UnchainedTech</title>
+ <link>https://unchainedtech.minteck.ro.lt</link>
+ <description>UnchainedTech is a tech-centric blog written by two people on their free time</description>
+ <copyright><?= date('Y') ?> UnchainedTech Authors, All rights reserved.</copyright>
+ <language>en-us</language>
+ <?php $index = 0; foreach ($list as $item): ?>
+ <?php if ($index < 10 && !$item["admin"]): ?>
+ <item>
+ <title><?= $item["title"] ?></title>
+ <link>https://unchainedtech.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; ?>
+ </channel>
+
</rss>
\ No newline at end of file |