summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorKevin Wallace <kevin@wallace.seattle.wa.us>2019-05-25 18:01:04 -0700
committerKevin Wallace <kevin@wallace.seattle.wa.us>2019-05-25 18:01:04 -0700
commit4fc8fe39ed70e84ee55675845dfbf5fc0bd1c3eb (patch)
tree2a4645889a6b8c8ecca38302a9ed38b1bdd5593e /index.php
parentadd divider when clicking 'more' (diff)
more more links
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/index.php b/index.php
index be36f66..7418c15 100644
--- a/index.php
+++ b/index.php
@@ -130,14 +130,18 @@ li:target {
?>
</ol>
<?php
- if ($depth > $more && $depth <= $max_more) {
+ $first_more = TRUE;
+ while ($depth <= $max_more) {
?>
<a<?=$anchor?> class="more" href="?<?=http_build_query([
'idx' => index_name($selected_index),
'q' => $q,
'more' => $depth,
- ])?>#more">MORE</a>
+ ])?><?= $first_more ? "#more" : "" ?>"><?= $first_more ? "MORE" : $depth ?></a>
<?php
+ $anchor = "";
+ $depth++;
+ $first_more = FALSE;
}
} else {
?>