1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 07:30:12 +01:00
mkdocs-material/material/partials/alternate.html
Sigurd Spieckermann a6a37ab9d0
Moved header options to partials (#5877)
* Improved warning in social plugin about site_url

* Documentation

* Documentation

* Extract header options into partials

---------

Co-authored-by: squidfunk <martin.donath@squidfunk.com>
2023-08-21 18:08:46 +02:00

23 lines
718 B
HTML

{#-
This file was automatically generated - do not edit
-#}
<div class="md-header__option">
<div class="md-select">
{% set icon = config.theme.icon.alternate or "material/translate" %}
<button class="md-header__button md-icon" aria-label="{{ lang.t('select.language') }}">
{% include ".icons/" ~ icon ~ ".svg" %}
</button>
<div class="md-select__inner">
<ul class="md-select__list">
{% for alt in config.extra.alternate %}
<li class="md-select__item">
<a href="{{ alt.link | url }}" hreflang="{{ alt.lang }}" class="md-select__link">
{{ alt.name }}
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>