new ui4
This commit is contained in:
@@ -291,3 +291,18 @@ border-t border-outline dark:border-outline-dark
|
||||
{% macro crumb_current(label) -%}
|
||||
<li class="font-semibold text-on-surface-strong dark:text-on-surface-dark-strong" aria-current="page">{{ label }}</li>
|
||||
{%- endmacro crumb_current %}
|
||||
|
||||
{# Title for the static info pages (controllers/pages.rs → pages/info.html),
|
||||
resolved from the `page` slug. Lives in a macro because a child template's
|
||||
top-level {% set %} isn't visible inside its {% block %}s under `extends`;
|
||||
the macro can be called from both the title and content blocks. #}
|
||||
{% macro page_title(page, lang) -%}
|
||||
{%- if page == "contact" -%}{{ t(key="top-contact", lang=lang) }}
|
||||
{%- elif page == "sitemap" -%}{{ t(key="top-sitemap", lang=lang) }}
|
||||
{%- elif page == "terms" -%}{{ t(key="footer-terms", lang=lang) }}
|
||||
{%- elif page == "about" -%}{{ t(key="footer-about", lang=lang) }}
|
||||
{%- elif page == "stores" -%}{{ t(key="footer-stores", lang=lang) }}
|
||||
{%- elif page == "shipping" -%}{{ t(key="footer-shipping", lang=lang) }}
|
||||
{%- else -%}{{ t(key="brand", lang=lang) }}
|
||||
{%- endif -%}
|
||||
{%- endmacro page_title %}
|
||||
|
||||
Reference in New Issue
Block a user