diff options
| author | Clayton Craft | 2022-04-16 23:58:11 -0700 |
|---|---|---|
| committer | Jieiku | 2022-05-30 22:10:30 -0700 |
| commit | b7903f1f3bc8a286368e1b76cc3af2ce2b5996fe (patch) | |
| tree | 710b9743f087815d63cc294ee5a1158c68e987a5 /templates/index.html | |
| parent | 8b8fb90f0fd3163406d660d7861abcb39e74793b (diff) | |
| download | abridge-b7903f1f3bc8a286368e1b76cc3af2ce2b5996fe.tar.gz abridge-b7903f1f3bc8a286368e1b76cc3af2ce2b5996fe.tar.bz2 abridge-b7903f1f3bc8a286368e1b76cc3af2ce2b5996fe.zip | |
use the 'recent' option to conditionally show/hide recent post list
Diffstat (limited to 'templates/index.html')
| -rw-r--r-- | templates/index.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html index 16eef5b..1bd4976 100644 --- a/templates/index.html +++ b/templates/index.html @@ -9,9 +9,12 @@ {% if paginator.previous %}<a href="{{ paginator.previous | safe }}">< Previous</a> {% endif %}{% if paginator.next %}<a href="{{ paginator.next | safe }}">Next ></a>{% endif %} </nav> </div>{% set section_item = get_section(path="_index.md") %} + {% if recent %} <div class="toc"> <div class="toc-sticky"> <h3>Recent Posts</h3>{% for page in section_item.pages | slice(end=config.extra.recent_items) %} {{ page_macros::page_listing(page=page) }}{% endfor %} </div> - </div>{% endblock content %} + </div> + {% endif %} + {% endblock content %} |
