From 1f23d65f32e37d0c6d703951d6735c9926f8521c Mon Sep 17 00:00:00 2001 From: Minteck <46352972+Minteck@users.noreply.github.com> Date: Wed, 30 Jun 2021 00:07:21 +0200 Subject: Really done this time --- _site/includes/articles/getlist.php | 10 +++++++++- _site/includes/dom/footer.php | 3 +++ _site/includes/dom/header.php | 5 ++--- 3 files changed, 14 insertions(+), 4 deletions(-) (limited to '_site/includes') diff --git a/_site/includes/articles/getlist.php b/_site/includes/articles/getlist.php index e3947f2..e82a192 100644 --- a/_site/includes/articles/getlist.php +++ b/_site/includes/articles/getlist.php @@ -2,7 +2,7 @@ $listGetTimeout = 0; -function getArticlesList() { +function getArticlesList($ordered = true) { $listGetStart = new DateTime("now"); global $Parsedown; global $listGetTimeout; @@ -24,6 +24,7 @@ function getArticlesList() { "cover" => null, "extract" => "" ]; + $list[$id]["id"] = $id; $propertiesMode = false; $propertiesDone = false; @@ -91,5 +92,12 @@ function getArticlesList() { $listGetTimeoutA = $listGetStart->diff($listGetEnd); $listGetTimeout = $listGetTimeoutA->f; + if ($ordered) { + usort($list, function($a, $b) { + return strtoupper($a['date']) <=> strtoupper($b['date']); + }); + $list = array_reverse($list); + } + return $list; } \ No newline at end of file diff --git a/_site/includes/dom/footer.php b/_site/includes/dom/footer.php index 4832ed2..1d0fb97 100644 --- a/_site/includes/dom/footer.php +++ b/_site/includes/dom/footer.php @@ -1,3 +1,5 @@ +

View RSS feed

+
@@ -14,6 +16,7 @@ ?>

+

© Blogchain Authors, All rights reserved. · Legal

diff --git a/_site/includes/dom/header.php b/_site/includes/dom/header.php index 079adb5..db37bab 100644 --- a/_site/includes/dom/header.php +++ b/_site/includes/dom/header.php @@ -175,6 +175,7 @@ function customError($errno, $errstr, $errfile = "<unknown file>", $errlin
 #{$errno}: {$errstr}
     at {$errfile}:{$errline}
+    at Blogchain.\$Core (PHP " . PHP_VERSION . ")
 
@@ -276,6 +277,7 @@ register_shutdown_function("customShutdown"); img { max-width: 100%; + max-height: 50vh; } .nav-link:hover, .nav-link:focus { @@ -313,9 +315,6 @@ register_shutdown_function("customShutdown"); - \ No newline at end of file -- cgit