mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2026-04-30 16:15:27 +08:00
为文档添加i18n插件并新增繁体中文语言
This commit is contained in:
2
docs/theme/partials/comments.html
vendored
2
docs/theme/partials/comments.html
vendored
@@ -14,7 +14,7 @@
|
||||
data-emit-metadata="0"
|
||||
data-input-position="top"
|
||||
data-theme="preferred_color_scheme"
|
||||
data-lang="zh-CN"
|
||||
data-lang="{{'zh-Hant' if i18n_page_locale == 'zh-hant' else 'zh-CN'}}"
|
||||
data-loading="lazy"
|
||||
crossorigin="anonymous"
|
||||
async
|
||||
|
||||
34
docs/theme/partials/palette.html
vendored
Normal file
34
docs/theme/partials/palette.html
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<form class="md-header__option" data-md-component="palette">
|
||||
{% for option in config.theme.palette %}
|
||||
{% set scheme = option.scheme | d("default", true) %}
|
||||
{% set primary = option.primary | d("indigo", true) %}
|
||||
{% set accent = option.accent | d("indigo", true) %}
|
||||
<input
|
||||
class="md-option"
|
||||
data-md-color-media="{{ option.media }}"
|
||||
data-md-color-scheme="{{ scheme | replace(' ', '-') }}"
|
||||
data-md-color-primary="{{ primary | replace(' ', '-') }}"
|
||||
data-md-color-accent="{{ accent | replace(' ', '-') }}"
|
||||
{% if option.toggle %}
|
||||
aria-label="{{ option.toggle.name }}"
|
||||
{% else %}
|
||||
aria-hidden="true"
|
||||
{% endif %}
|
||||
type="radio"
|
||||
name="__palette"
|
||||
id="__palette_{{ loop.index0 }}"
|
||||
/>
|
||||
{% if option.toggle %}
|
||||
<label
|
||||
class="md-header__button md-icon"
|
||||
title="{{ option.toggle.name }}"
|
||||
for="__palette_{{ loop.index % loop.length }}"
|
||||
hidden
|
||||
>
|
||||
<div class="palette-icon">
|
||||
{% include ".icons/" ~ option.toggle.icon ~ ".svg" %}
|
||||
</div>
|
||||
</label>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</form>
|
||||
24
docs/theme/partials/search.html
vendored
24
docs/theme/partials/search.html
vendored
File diff suppressed because one or more lines are too long
6
docs/theme/partials/toc.html
vendored
6
docs/theme/partials/toc.html
vendored
@@ -11,7 +11,7 @@
|
||||
<div class="md-content" data-md-component="content">
|
||||
<div class="sponsor sponsor-toc">
|
||||
<div class="sponsor-label">
|
||||
<strong>赞助商</strong>
|
||||
<strong>{{'贊助商' if i18n_page_locale == 'zh-hant' else '赞助商'}}</strong>
|
||||
</div>
|
||||
<div class="sponsor-wrapper sponsor-flex-wrapper-toc no-select">
|
||||
<a class="sponsor-item sponsor-item-toc sponsor-item-toc-full-row" target="_blank" href="https://1panel.cn" title="新一代的 Linux 服务器运维管理面板">
|
||||
@@ -56,9 +56,9 @@
|
||||
<img src="/assets/images/sponsor/hkgserver-light.png#only-light" alt="HKGserver" style="filter: grayscale(1) invert(0.5)" />
|
||||
<img src="/assets/images/sponsor/hkgserver-dark.png#only-dark" alt="HKGserver" style="filter: grayscale(1) invert(0.4)" />
|
||||
</a>
|
||||
<!-- <a class="sponsor-item sponsor-item-toc" target="_blank" title="成为赞助商" href="/sponsor/">
|
||||
<!-- <a class="sponsor-item sponsor-item-toc" target="_blank" title="{{'成為贊助商' if i18n_page_locale == 'zh-hant' else '成为赞助商'}}" href="/sponsor/">
|
||||
<span style="font-size: 0.6rem; opacity: 0.5">
|
||||
<strong>成为赞助商</strong>
|
||||
<strong>{{'成為贊助商' if i18n_page_locale == 'zh-hant' else '成为赞助商'}}</strong>
|
||||
</span>
|
||||
</a> -->
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user