Make templates compatible with StrictUndefined

Dactyl v0.8.0 required
This commit is contained in:
mDuo13
2019-02-15 19:08:05 -08:00
parent f55c9de626
commit 6c464cc27b
12 changed files with 88 additions and 91 deletions

View File

@@ -15,7 +15,7 @@
<div class="curated-links">
<ul>
{% for link in currentpage.useful_background %}
{% set linkpage = pages|selectattr("html", "equalto", link)|first %}
{% set linkpage = pages|selectattr("html", 'defined_and_equalto', link)|first %}
<li><a href="{{linkpage.html}}">{{linkpage.name}}</a></li>
{% endfor %}
</ol>