mirror of
https://github.com/tchartron/blow
synced 2024-11-22 12:23:19 +00:00
update
This commit is contained in:
parent
b5d64f7df0
commit
6960471f0f
2 changed files with 16 additions and 14 deletions
File diff suppressed because one or more lines are too long
|
@ -140,23 +140,25 @@
|
|||
{% endif %}
|
||||
|
||||
{% if config.extra.zt.enable_multilingue %}
|
||||
<!-- Language change button -->
|
||||
<div class="flex p-2 ml-4">
|
||||
<svg class="w-6 h-6 bg-gray-200 text-gray-800 hover:text-gray-900 dark:bg-gray-800 dark:text-gray-400 dark:hover:text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"></path>
|
||||
</svg>
|
||||
<!-- Language change button -->
|
||||
<div class="flex p-2 ml-4">
|
||||
<button id="switch-lang" type="button" class="bg-gray-200 text-gray-800 hover:text-gray-900 dark:bg-gray-800 dark:text-gray-400 dark:hover:text-white p-1 rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white">
|
||||
<svg class="w-6 h-6 bg-gray-200 text-gray-800 hover:text-gray-900 dark:bg-gray-800 dark:text-gray-400 dark:hover:text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<div class="relative">
|
||||
<div id="switch-lang" class="hidden absolute z-10 rounded-lg divide-y bg-gray-300 dark:bg-gray-700 flex flex-col w-12">
|
||||
<div id="switch-lang-panel" class="hidden absolute z-10 rounded-lg divide-y bg-gray-300 dark:bg-gray-700 flex flex-col w-12">
|
||||
<span class="sr-only">Switch Lang</span>
|
||||
{% for item in config.extra.lang.items %}
|
||||
{% if item.lang == item.lang %}
|
||||
<a href="{{ item.base_url }}">{{ item.name }}</a>
|
||||
<a href="{{ item.base_url }}">{{ item.name }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for item in config.extra.lang.items %}
|
||||
{% if item.lang == item.lang %}
|
||||
<a href="{{ item.base_url }}">{{ item.name }}</a>
|
||||
<a href="{{ item.base_url }}">{{ item.name }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<!-- Theme switch button -->
|
||||
<div class="flex p-2">
|
||||
|
|
Loading…
Reference in a new issue