From 59f8098ddf3914940d870c9b3ebe49f954937f51 Mon Sep 17 00:00:00 2001 From: Super Manito <68613938+SuperManito@users.noreply.github.com> Date: Thu, 26 Jun 2025 23:58:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/theme/partials/copyright.html | 14 ++++++++++++++ mkdocs.yml | 9 ++++----- netlify.toml | 14 ++++++++++++++ 3 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 docs/theme/partials/copyright.html create mode 100644 netlify.toml diff --git a/docs/theme/partials/copyright.html b/docs/theme/partials/copyright.html new file mode 100644 index 0000000..2c7a54e --- /dev/null +++ b/docs/theme/partials/copyright.html @@ -0,0 +1,14 @@ + diff --git a/mkdocs.yml b/mkdocs.yml index a906218..cf8639c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,7 +2,7 @@ site_name: LinuxMirrors repo_name: LinuxMirrors repo_url: https://github.com/SuperManito/LinuxMirrors edit_uri: edit/main/docs/ -copyright: 'Copyright © 2025 SuperManito
本网站由 Netlify 部署并提供全球 CDN 边缘网络加速 ' +copyright: 'Copyright © 2025 SuperManito' nav: - "介绍": index.md @@ -167,7 +167,6 @@ plugins: "社区": 社群 "赞助": 贊助 build: true - copyright: 'Copyright © 2025 SuperManito
本網站由 Netlify 部署並提供全球 CDN 邊緣網路加速 ' extra: homepage: https://linuxmirrors.cn/zh-Hant theme: @@ -181,9 +180,9 @@ plugins: - media: "(prefers-color-scheme: dark)" toggle: name: 暗黑模式 - - search: - lang: en - separator: '[\s\-,:!=\[\]()"/]+|(?!\b)(?=[A-Z][a-z])|\.(?!\d)|&[lg]t;' + # - search: + # lang: en + # separator: '[\s\-,:!=\[\]()"/]+|(?!\b)(?=[A-Z][a-z])|\.(?!\d)|&[lg]t;' - tags - termynal # - minify: diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..72d2efc --- /dev/null +++ b/netlify.toml @@ -0,0 +1,14 @@ +[[headers]] + for = "/*.js" + [headers.values] + Cache-Control = "public, max-age=31536000, must-revalidate" + +[[headers]] + for = "/*.css" + [headers.values] + Cache-Control = "public, max-age=31536000, must-revalidate" + +[[headers]] + for = "/*.png" + [headers.values] + Cache-Control = "public, max-age=31536000, must-revalidate"