community/templates/resource.html

23 lines
602 B
HTML
Raw Permalink Normal View History

2022-08-10 21:39:04 +00:00
{% extends 'layout.html' %}
2023-01-10 19:05:35 +00:00
{# recursively generate the pathbar segments for a given page #}
{% macro pathbar_segments(page) -%}
{% set current_page = page == this %}
{%- if page.parent -%}
{{ pathbar_segments(page.parent) }}
{% endif %}
<li class="d-inline">
{% if not current_page %}
<a href="{{ page|url }}" title="page.title">{{ page.title }}</a>
{% else %}
{{ page.title }}
{% endif %}
</li>
{% endmacro %}
{% block pathbar %}
2022-09-06 22:10:11 +00:00
<div style="" class="py-3 pl-4" id="pathbar">
<ul class="m-0 pl-3">{{ pathbar_segments(this.record) }}</ul>
</div>
{% endblock %}