From 84a4ae290235c5c2f0147d546613990f4b4b991e Mon Sep 17 00:00:00 2001 From: Kortice Date: Tue, 20 Aug 2024 23:02:42 +0800 Subject: [PATCH] add: footer related links --- docusaurus.config.ts | 14 +++++++++++++- src/css/custom.css | 1 + static/img/upyun_logo.svg | 13 +++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 static/img/upyun_logo.svg diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 6798176..c43c620 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -173,7 +173,19 @@ const config: Config = { // 页脚 footer: { style: 'dark', - links: [], // 这部分可以从docusaurus 文档中复现,我们删除了 + links: [ + { + html: ` +
+ 本网站由 + + 又拍云 + + 提供CDN加速/云存储服务 +
+ ` + } + ], // 这部分可以从docusaurus 文档中复现,我们删除了 copyright: `版权所有 © ${new Date().getFullYear()} west2-online. 网站使用 Docusaurus 构建. 闽ICP备19020557号-3`, }, prism: { diff --git a/src/css/custom.css b/src/css/custom.css index 74112c5..1eb370e 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -15,6 +15,7 @@ --ifm-color-primary-lightest: #f3faff; --ifm-code-font-size: 95%; --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); + --ifm-footer-padding-vertical: 1.6rem; } /* For readability concerns, you should choose a lighter palette in dark mode. */ diff --git a/static/img/upyun_logo.svg b/static/img/upyun_logo.svg new file mode 100644 index 0000000..2bd9ba5 --- /dev/null +++ b/static/img/upyun_logo.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file