aboutsummaryrefslogtreecommitdiff
path: root/includes/blog/home.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/blog/home.php')
-rw-r--r--includes/blog/home.php3
1 files changed, 2 insertions, 1 deletions
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