Automatic flag numbers for card grids; comment-out explorer link for now

This commit is contained in:
mDuo13
2019-06-14 13:15:58 -07:00
parent a42d091c08
commit e1321ccea1
4 changed files with 33 additions and 10 deletions

View File

@@ -11,6 +11,7 @@
<section class="container-fluid card-grid card-grid-3xN doc-landing-section">
{% set doc_types = [] %}
{% set flag_n = cycler(* range(1,99)) %}
{% for page in pages %}
{% if page.doc_type is defined and page.doc_type not in doc_types %}
{% set doc_type_top = pages|selectattr('doc_type', 'defined_and_equalto', page.doc_type)|first %}
@@ -32,6 +33,7 @@
<a class="btn btn-outline-secondary" href="{{doc_type_top.html}}">View All {{doc_type_top.name}}</a>
</div>
</div><!--/.card-footer-->
<div class="flag-vertical">{{"%02d"|format(flag_n.next())}}</div>
</div><!--/.card-->
{% set _ = doc_types.append(page.doc_type) %}