From 5c5014a95ae79af4b052b5011e7d0c11d6eae6a6 Mon Sep 17 00:00:00 2001 From: Minteck <46352972+Minteck@users.noreply.github.com> Date: Tue, 29 Jun 2021 21:10:46 +0200 Subject: It's all done? Almost, just missing the RSS feed! --- .gitignore | 1 + .idea/php.xml | 4 ++++ _posts/article.md | 26 -------------------------- _posts/assets/stuff.jpg | Bin 13178 -> 0 bytes _site/.htaccess | 7 +++++-- _site/about/index.php | 30 ++++++++++++++++++++++++++++++ _site/articles/index.php | 16 ++++++++++++++++ _site/authors/antoine62.jpg | Bin 0 -> 29725 bytes _site/authors/minteck.jpg | Bin 0 -> 65748 bytes _site/errs/403.php | 10 ++++++++++ _site/errs/404.php | 10 ++++++++++ _site/errs/500.php | 10 ++++++++++ _site/home/index.php | 5 ++++- _site/includes/articles/getlist.php | 9 +++++++++ _site/includes/dom/footer.php | 14 +++++++++++++- _site/includes/dom/header.php | 10 +++++++++- _site/rewrites/article.php | 6 ++++++ 17 files changed, 127 insertions(+), 31 deletions(-) create mode 100644 .gitignore create mode 100644 .idea/php.xml delete mode 100644 _posts/article.md delete mode 100644 _posts/assets/stuff.jpg create mode 100644 _site/about/index.php create mode 100644 _site/articles/index.php create mode 100644 _site/authors/antoine62.jpg create mode 100644 _site/authors/minteck.jpg create mode 100644 _site/errs/403.php create mode 100644 _site/errs/404.php create mode 100644 _site/errs/500.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ca283dd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +_posts/* \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..7341688 --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/_posts/article.md b/_posts/article.md deleted file mode 100644 index 2c76fba..0000000 --- a/_posts/article.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -date: 2020-01-05 -title: Hello there -author: Minteck|antoine62 -cover: /assets/stuff.jpg ---- - -# Content of the post -This is a test post! - -Can you believe this was Markdown before? - -| table | test -| --- | --- -| let's | do | -| some | stuff | - -Some `code` (well, that formatting is pretty useless since everything is monospace font) - -```javascript -function test() { - console.log("Some code block!"); -} -``` - -![Test image](/assets/stuff.jpg) \ No newline at end of file diff --git a/_posts/assets/stuff.jpg b/_posts/assets/stuff.jpg deleted file mode 100644 index 650263a..0000000 Binary files a/_posts/assets/stuff.jpg and /dev/null differ diff --git a/_site/.htaccess b/_site/.htaccess index 9fd4c96..034d457 100644 --- a/_site/.htaccess +++ b/_site/.htaccess @@ -1,4 +1,7 @@ RewriteEngine on RewriteBase / -RewriteRule ^/?article/([a-zA-Z0-9_]+)$ /rewrites/article.php?i=$1 [L] -RewriteRule ^/?assets/([a-zA-Z0-9_./]+)$ /rewrites/assets.php?i=$1 [L] \ No newline at end of file +RewriteRule ^/?article/([a-zA-Z0-9_\-]+)$ /rewrites/article.php?i=$1 [L] +RewriteRule ^/?assets/([a-zA-Z0-9_\-./]+)$ /rewrites/assets.php?i=$1 [L] + +ErrorDocument 404 /errs/404.php +ErrorDocument 403 /errs/403.php \ No newline at end of file diff --git a/_site/about/index.php b/_site/about/index.php new file mode 100644 index 0000000..57afa94 --- /dev/null +++ b/_site/about/index.php @@ -0,0 +1,30 @@ + + +
+

What's that? Who's behind it?

+

Let us a moment to introduce ourselves.

+
+
+

Blogchain is a tech-centric blog written by two people on their free time. Whether it is the new Windows update or the latest iPhone, the Blogchain writers will always find a topic to talk about.

+ +

Blogchain is proudly powered by open-source software! Namely: +

+ +

Last but not least, Blogchain wouldn't be so easy to develop without JetBrains software. Huge thanks to them for giving me (Minteck) a free license to help me develop my FLOSS software faster than ever!

+ +

Who is behind this blog?

+ +
+ + \ No newline at end of file diff --git a/_site/articles/index.php b/_site/articles/index.php new file mode 100644 index 0000000..b694a15 --- /dev/null +++ b/_site/articles/index.php @@ -0,0 +1,16 @@ + + +
+

Here be dragons!

+

This is the complete list of all the posts that were on Blogchain one day. Yep, they are all here!

+
+ +
+
+ $item): ?> + + +
+
+ + \ No newline at end of file diff --git a/_site/authors/antoine62.jpg b/_site/authors/antoine62.jpg new file mode 100644 index 0000000..b63b23d Binary files /dev/null and b/_site/authors/antoine62.jpg differ diff --git a/_site/authors/minteck.jpg b/_site/authors/minteck.jpg new file mode 100644 index 0000000..3c6236c Binary files /dev/null and b/_site/authors/minteck.jpg differ diff --git a/_site/errs/403.php b/_site/errs/403.php new file mode 100644 index 0000000..03fd907 --- /dev/null +++ b/_site/errs/403.php @@ -0,0 +1,10 @@ + + +
+

# 403_

+

Feeling curious, huh?

+

You tried to access some secret folder that only the server administrators can access; in other words: you can't access this right now because we don't want you to.

+

You probably want to go back home.

+
+ + \ No newline at end of file diff --git a/_site/errs/404.php b/_site/errs/404.php new file mode 100644 index 0000000..d2ef0f3 --- /dev/null +++ b/_site/errs/404.php @@ -0,0 +1,10 @@ + + +
+

# 404_

+

You surely know what this means.

+

Welp, we can't find what you are looking for right now. If you clicked on a link, the relevant page may have been moved, deleted or something like that.

+

You probably want to go back home.

+
+ + \ No newline at end of file diff --git a/_site/errs/500.php b/_site/errs/500.php new file mode 100644 index 0000000..b7421a0 --- /dev/null +++ b/_site/errs/500.php @@ -0,0 +1,10 @@ + + +
+

# 500_

+

Did I miss something?

+

Something's really wrong with the server and we can't get you to that thing you wanted right now. Perhaps you could try that later

+

You probably want to go back home.

+
+ + \ No newline at end of file diff --git a/_site/home/index.php b/_site/home/index.php index c8a64db..2425013 100644 --- a/_site/home/index.php +++ b/_site/home/index.php @@ -30,11 +30,14 @@

Also check out our older articles:

$item): ?> - 3): ?> + = 3 && $index < 100): ?>
+ 100): ?> +

Wait! There's more! Our older articles aren't listed here to save you some bytes of data. You can get to the complete list here.

+ diff --git a/_site/includes/articles/getlist.php b/_site/includes/articles/getlist.php index 5f55574..e3947f2 100644 --- a/_site/includes/articles/getlist.php +++ b/_site/includes/articles/getlist.php @@ -1,7 +1,11 @@ diff($listGetEnd); + $listGetTimeout = $listGetTimeoutA->f; + return $list; } \ No newline at end of file diff --git a/_site/includes/dom/footer.php b/_site/includes/dom/footer.php index 31b6cb8..4832ed2 100644 --- a/_site/includes/dom/footer.php +++ b/_site/includes/dom/footer.php @@ -1,7 +1,19 @@
-

# blogchain --twitter --githubgi_

+

# blogchain --support --code --version_
+ + +

diff --git a/_site/includes/dom/header.php b/_site/includes/dom/header.php index 7398567..079adb5 100644 --- a/_site/includes/dom/header.php +++ b/_site/includes/dom/header.php @@ -1,5 +1,6 @@ diff --git a/_site/rewrites/article.php b/_site/rewrites/article.php index eb98798..613121b 100644 --- a/_site/rewrites/article.php +++ b/_site/rewrites/article.php @@ -39,7 +39,13 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/dom/header.php"; ?>, by

+ + + +
')">
+ +
-- cgit