aboutsummaryrefslogtreecommitdiff
path: root/_site/articles
diff options
context:
space:
mode:
Diffstat (limited to '_site/articles')
-rw-r--r--_site/articles/index.php16
1 files changed, 16 insertions, 0 deletions
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 @@
+<?php $_TITLE = "Articles Index"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/dom/header.php"; ?>
+
+<div class="container" style="margin-top:30px;text-align: center;">
+ <h2>Here be dragons!</h2>
+ <p>This is the complete list of all the posts that were on Blogchain one day. Yep, they are all here!</p>
+</div>
+<?php $list = getArticlesList() ?>
+<div class="container">
+ <div class="list-group">
+ <?php $index = 0;foreach ($list as $id => $item): ?>
+ <a href="/article/<?= $id ?>" class="list-group-item list-group-item-action"><?= $item["title"] ?></a>
+ <?php $index++;endforeach; ?>
+ </div>
+</div>
+
+<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/dom/footer.php"; ?> \ No newline at end of file