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/about/index.php | 2 +-
_site/articles/index.php | 2 +-
_site/feed.xml/index.php | 43 +++++++++++++++++++++++++++++++++++++
_site/home/index.php | 4 ++--
_site/includes/articles/getlist.php | 10 ++++++++-
_site/includes/dom/footer.php | 3 +++
_site/includes/dom/header.php | 5 ++---
_site/index.html | 39 ---------------------------------
_site/index.php | 4 ++++
_site/rewrites/article.php | 2 +-
10 files changed, 66 insertions(+), 48 deletions(-)
create mode 100644 _site/feed.xml/index.php
delete mode 100644 _site/index.html
create mode 100644 _site/index.php
(limited to '_site')
diff --git a/_site/about/index.php b/_site/about/index.php
index 57afa94..c377abc 100644
--- a/_site/about/index.php
+++ b/_site/about/index.php
@@ -22,7 +22,7 @@
Who is behind this blog?
-
antoine62g writer, correcter, UI/UX tester · Contact him on Matrix
+
antoine62 writer, correcter, UI/UX tester · Contact him on Matrix
Minteck writer, developer, UI/UX designer · Contact him on Matrix and Twitter
diff --git a/_site/articles/index.php b/_site/articles/index.php
index b694a15..1ea7270 100644
--- a/_site/articles/index.php
+++ b/_site/articles/index.php
@@ -8,7 +8,7 @@
diff --git a/_site/feed.xml/index.php b/_site/feed.xml/index.php
new file mode 100644
index 0000000..a1fa3df
--- /dev/null
+++ b/_site/feed.xml/index.php
@@ -0,0 +1,43 @@
+');
+
+require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/markdown.php";
+$Parsedown = new Parsedown();
+
+require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/articles/getlist.php";
+$list = getArticlesList();
+
+?>
+
+
+
+
+
+
+ Blogchain
+ https://blogchain.minteck.ro.lt
+ Blogchain is a tech-centric blog written by two people on their free time
+ = date('Y') ?> Blogchain Authors, All rights reserved.
+ en-us
+
+
+ -
+ = $item["title"] ?>
+ https://blogchain.minteck.ro.lt/article/= $item["id"] ?>
+ = $item["content"]["full"] ?>
+
+
+
+
+
+
\ No newline at end of file
diff --git a/_site/home/index.php b/_site/home/index.php
index 2425013..62a076d 100644
--- a/_site/home/index.php
+++ b/_site/home/index.php
@@ -13,7 +13,7 @@
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 @@
?>
+
© = date('Y') ?> Blogchain Authors, All rights reserved. · Legal
-
-
- No chain for you!
- We closed Blogchain while we tidy up things. It will be back soon!
-
-
-
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");
About
-
- Legal
-
\ No newline at end of file
diff --git a/_site/index.html b/_site/index.html
deleted file mode 100644
index 68e3551..0000000
--- a/_site/index.html
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
Blogchain
-
-
-
-