diff options
Diffstat (limited to 'includes/blog')
-rw-r--r-- | includes/blog/data/2020-05-02@something2.json | 3 | ||||
-rw-r--r-- | includes/blog/data/2020-05-02@something2.json.html | 1 | ||||
-rw-r--r-- | includes/blog/data/2020-05-03@something3.json | 3 | ||||
-rw-r--r-- | includes/blog/data/2020-05-03@something3.json.html | 1 | ||||
-rw-r--r-- | includes/blog/data/2020-05-04@something4.json | 3 | ||||
-rw-r--r-- | includes/blog/data/2020-05-04@something4.json.html | 1 | ||||
-rw-r--r-- | includes/blog/home.php | 3 | ||||
-rw-r--r-- | includes/blog/list.php | 1 |
8 files changed, 15 insertions, 1 deletions
diff --git a/includes/blog/data/2020-05-02@something2.json b/includes/blog/data/2020-05-02@something2.json new file mode 100644 index 0000000..51021ea --- /dev/null +++ b/includes/blog/data/2020-05-02@something2.json @@ -0,0 +1,3 @@ +{ + "title": "Some article" +}
\ No newline at end of file diff --git a/includes/blog/data/2020-05-02@something2.json.html b/includes/blog/data/2020-05-02@something2.json.html new file mode 100644 index 0000000..12ed35a --- /dev/null +++ b/includes/blog/data/2020-05-02@something2.json.html @@ -0,0 +1 @@ +<b>This is some <i>test</i></b><u> or, <i>is it?</i></u>... We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here.
\ No newline at end of file diff --git a/includes/blog/data/2020-05-03@something3.json b/includes/blog/data/2020-05-03@something3.json new file mode 100644 index 0000000..51021ea --- /dev/null +++ b/includes/blog/data/2020-05-03@something3.json @@ -0,0 +1,3 @@ +{ + "title": "Some article" +}
\ No newline at end of file diff --git a/includes/blog/data/2020-05-03@something3.json.html b/includes/blog/data/2020-05-03@something3.json.html new file mode 100644 index 0000000..12ed35a --- /dev/null +++ b/includes/blog/data/2020-05-03@something3.json.html @@ -0,0 +1 @@ +<b>This is some <i>test</i></b><u> or, <i>is it?</i></u>... We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here.
\ No newline at end of file diff --git a/includes/blog/data/2020-05-04@something4.json b/includes/blog/data/2020-05-04@something4.json new file mode 100644 index 0000000..51021ea --- /dev/null +++ b/includes/blog/data/2020-05-04@something4.json @@ -0,0 +1,3 @@ +{ + "title": "Some article" +}
\ No newline at end of file diff --git a/includes/blog/data/2020-05-04@something4.json.html b/includes/blog/data/2020-05-04@something4.json.html new file mode 100644 index 0000000..12ed35a --- /dev/null +++ b/includes/blog/data/2020-05-04@something4.json.html @@ -0,0 +1 @@ +<b>This is some <i>test</i></b><u> or, <i>is it?</i></u>... We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here. We would never know if there really should be any text or whatever thingy just in that place right here.
\ No newline at end of file diff --git a/includes/blog/home.php b/includes/blog/home.php index 162babc..a515c14 100644 --- a/includes/blog/home.php +++ b/includes/blog/home.php @@ -3,6 +3,7 @@ $articles = scandir($_SERVER['DOCUMENT_ROOT'] . "/includes/blog/data"); $i = 1; + $articles = array_reverse($articles); foreach ($articles as $article): ?> @@ -19,6 +20,6 @@ <a href="/blog/article-<?= explode(".", $article)[0] ?>" class="card-link"><?= l("Read more...", "Lire plus...") ?></a> </div> </div> - <?php endif;$i++; ?> + <?php $i++;endif; ?> <?php endforeach; ?> </div>
\ No newline at end of file diff --git a/includes/blog/list.php b/includes/blog/list.php index 5166966..ba859a2 100644 --- a/includes/blog/list.php +++ b/includes/blog/list.php @@ -3,6 +3,7 @@ $articles = scandir($_SERVER['DOCUMENT_ROOT'] . "/includes/blog/data"); $i = 1; + $articles = array_reverse($articles); foreach ($articles as $article): ?> |