{% block footer %}
<div id="wltoc" class="box">
{% if book.parent %}
- {% for b in book.ancestor.all %}
+ {% for b in book.ancestors %}
{% if forloop.counter > 1 %}
<li>
{% endif %}
"label": "{{ ref.entity.label }}",
"description": "{{ ref.entity.description }}",
"wikipedia_link": "{{ ref.entity.wikipedia_link }}"
- }{% if not forloop.last %},{% endif %}
+ },
{% endif %}
{% endfor %}
+ "": null
}
</script>
{% endlocalize %}