menu
Information
- Folder
src/components/template-components/footer/menu
Files
Schema
$schema: http://json-schema.org/draft-07/schema
$id: /template-components/footer/menu
additionalProperties: false
type: object
required:
- items
- label
properties:
items:
type: array
items:
type: object
properties:
title:
type: string
url:
type: string
format: uri-reference
required:
- title
- url
label:
type: string
Mocks
label: Footer
items:
- title: Impressum
url: url
- title: Privacy
url: url
- title: Cookies
url: url
- title: Sitemap
url: url
Template
<nav aria-label="{{ label }}" itemscope itemtype="http://schema.org/SiteNavigationElement">
<ul class="FooterMenu-list">
{%- for item in items -%}
<li>
<a class="u-link" href="{{ item.url }}" itemprop="url"{% if item.in_active_trail %} aria-current="page"{% endif %}>
<span itemprop="name">
{{ item.title }}
</span>
</a>
</li>
{%- endfor -%}
</ul>
</nav>
Variants