aboutsummaryrefslogtreecommitdiff
path: root/_site/includes
diff options
context:
space:
mode:
Diffstat (limited to '_site/includes')
-rw-r--r--_site/includes/articles/getlist.php10
-rw-r--r--_site/includes/dom/footer.php3
-rw-r--r--_site/includes/dom/header.php5
3 files changed, 14 insertions, 4 deletions
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 @@
+<p style="margin-top:20px;text-align:center;"><a href="/feed.xml" style="text-decoration: underline;">View RSS feed</a></p>
+
<hr>
<div class="container">
@@ -14,6 +16,7 @@
?>
</span></p>
+ <small><p style="text-align: center;">© <?= date('Y') ?> Blogchain Authors, All rights reserved. · <a href="https://minteck-projects.alwaysdata.net/legal" target="_blank" style="text-decoration: underline;">Legal</a></p></small>
</div>
</body>
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 = "&lt;unknown file&gt;", $errlin
<pre>
#{$errno}: {$errstr}
at {$errfile}:{$errline}
+ at Blogchain.\$Core (PHP " . PHP_VERSION . ")
</pre>
</div>
</body>
@@ -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");
<li class="nav-item">
<a class="nav-link" href="/about">About</a>
</li>
- <li class="nav-item">
- <a class="nav-link" href="https://minteck-projects.alwaysdata.net/legal">Legal</a>
- </li>
</ul>
</nav> \ No newline at end of file