add brand option to metadata.json.

add brand and link to nav if set.
pull/2158/head
Matt Public 2023-08-24 15:30:52 -07:00
rodzic 527cec66b0
commit 0d89c4bd19
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -3,6 +3,9 @@
{% set items=crumb_items(request=request, database=database, table=table) %}
{% if items %}
<p class="crumbs">
{% if metadata and metadata.brand %}
<a style="font-size: 18px; font-weight:bold; padding-right: 8px;" href="{{metadata.brand_url or '#'}}">{{metadata.brand}}</a>
{% endif %}
{% for item in items %}
<a href="{{ item.href }}">{{ item.label }}</a>
{% if not loop.last %}