aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorJieiku2023-05-22 22:31:34 -0700
committerJieiku2023-05-22 22:31:34 -0700
commit940b40688a7cf595eee061b696187e2fe4a578e2 (patch)
tree15f9ef4ea0170d61c263c26c32f13398a2ec348a /templates/index.html
parent5c3cc8966834a0d140f82aa178ba26109f79dd8f (diff)
downloadabridge-940b40688a7cf595eee061b696187e2fe4a578e2.tar.gz
abridge-940b40688a7cf595eee061b696187e2fe4a578e2.tar.bz2
abridge-940b40688a7cf595eee061b696187e2fe4a578e2.zip
Json-Index and config.toml optional
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index 7c8c45a..4702e16 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -59,7 +59,8 @@
<div class="toc">
<div class="toc-sticky">
<h1><span class="s75">Recent Posts</span></h1>
- {%- for page in section_item.pages | slice(end=config.extra.recent_items) %}
+ {%- set recent_items=config.extra.recent_items | default(value=9) -%}
+ {%- for page in section_item.pages | slice(end=recent_items) %}
{{- page_macros::page_listing(page=page, config=config) }}
{%- endfor %}
</div>