aboutsummaryrefslogtreecommitdiff
path: root/_site/home
diff options
context:
space:
mode:
authorMinteck <46352972+Minteck@users.noreply.github.com>2021-06-29 21:10:46 +0200
committerMinteck <46352972+Minteck@users.noreply.github.com>2021-06-29 21:10:46 +0200
commit5c5014a95ae79af4b052b5011e7d0c11d6eae6a6 (patch)
tree2e01690505d48a296d1826096f974762f46380dc /_site/home
parentd2733aa17b7932dfb78e97639e7d568ac41b9ee1 (diff)
downloadunchainedtech-5c5014a95ae79af4b052b5011e7d0c11d6eae6a6.tar.gz
unchainedtech-5c5014a95ae79af4b052b5011e7d0c11d6eae6a6.tar.bz2
unchainedtech-5c5014a95ae79af4b052b5011e7d0c11d6eae6a6.zip
It's all done? Almost, just missing the RSS feed!
Diffstat (limited to '_site/home')
-rw-r--r--_site/home/index.php5
1 files changed, 4 insertions, 1 deletions
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 @@
<h3 style="margin-top:20px;">Also check out our older articles:</h3>
<div class="list-group">
<?php $index = 0;foreach ($list as $id => $item): ?>
- <?php if ($index > 3): ?>
+ <?php if ($index >= 3 && $index < 100): ?>
<a href="/article/<?= $id ?>" class="list-group-item list-group-item-action"><?= $item["title"] ?></a>
<?php endif; ?>
<?php $index++;endforeach; ?>
</div>
+ <?php if (count($list) > 100): ?>
+ <p>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 <a href="/articles" style="text-decoration: underline;">here</a>.</p>
+ <?php endif; ?>
<?php endif; ?>
</div>