diff options
Diffstat (limited to '_site/home/index.php')
-rw-r--r-- | _site/home/index.php | 5 |
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> |