From 0319acea704d9a48e74780c3bdd269ff4da5f2b8 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Thu, 4 May 2023 18:24:47 +0800 Subject: [PATCH] =?UTF-8?q?matery=20=E5=85=AC=E5=91=8A=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/DebugPanel.js | 2 +- lib/lang/en-US.js | 3 +- lib/lang/zh-CN.js | 3 +- themes/matery/LayoutBase.js | 19 +-- themes/matery/LayoutIndex.js | 3 +- themes/matery/LayoutSlug.js | 133 +++++++++--------- themes/matery/components/Announcement.js | 29 ++++ themes/matery/components/BlogPostListPage.js | 2 +- .../matery/components/BlogPostListScroll.js | 2 +- .../matery/components/FloatDarkModeButton.js | 5 +- themes/matery/components/Header.js | 7 +- .../matery/components/JumpToCommentButton.js | 9 +- themes/matery/components/JumpToTopButton.js | 13 +- 13 files changed, 134 insertions(+), 96 deletions(-) create mode 100644 themes/matery/components/Announcement.js diff --git a/components/DebugPanel.js b/components/DebugPanel.js index 01e3c579..55c4a465 100644 --- a/components/DebugPanel.js +++ b/components/DebugPanel.js @@ -58,7 +58,7 @@ export function DebugPanel() {
{show diff --git a/lib/lang/en-US.js b/lib/lang/en-US.js index 10ac5bf9..58bec1e5 100644 --- a/lib/lang/en-US.js +++ b/lib/lang/en-US.js @@ -39,7 +39,8 @@ export default { DEBUG_OPEN: 'Debug', DEBUG_CLOSE: 'Close', THEME_SWITCH: 'Theme Switch', - ANNOUNCEMENT: 'Announcement' + ANNOUNCEMENT: 'Announcement', + START_READING: 'Start Reading' }, PAGINATION: { PREV: 'Prev', diff --git a/lib/lang/zh-CN.js b/lib/lang/zh-CN.js index 8379c75f..511bb3bf 100644 --- a/lib/lang/zh-CN.js +++ b/lib/lang/zh-CN.js @@ -41,7 +41,8 @@ export default { DEBUG_OPEN: '开启调试', DEBUG_CLOSE: '关闭调试', THEME_SWITCH: '切换主题', - ANNOUNCEMENT: '公告' + ANNOUNCEMENT: '公告', + START_READING: '开始阅读' }, PAGINATION: { PREV: '上一页', diff --git a/themes/matery/LayoutBase.js b/themes/matery/LayoutBase.js index fb5df18e..0fcba177 100644 --- a/themes/matery/LayoutBase.js +++ b/themes/matery/LayoutBase.js @@ -51,9 +51,15 @@ const LayoutBase = props => { {headerSlot}
+ {/* 嵌入区域 */} +
+ {props.containerSlot} +
+
{onLoading ? : children}
+
{/* 左下角悬浮 */} @@ -61,15 +67,12 @@ const LayoutBase = props => {
-
- -
- {/* 右下角悬浮 */} -