diff --git a/settings.yaml b/settings.yaml index b4d0454..063b5a1 100644 --- a/settings.yaml +++ b/settings.yaml @@ -79,6 +79,7 @@ spec: name: layout_sidebar label: 启用侧边栏 value: false + help: 侧边栏功能开发中,暂不可用 - $formkit: switch name: animation_enabled label: 启用动效 @@ -132,6 +133,7 @@ spec: label: 副标题(留空则使用站点副标题) - $formkit: select name: hero_description_mode + id: hero_description_mode label: 描述文案来源 options: - label: 无 @@ -178,6 +180,7 @@ spec: - $formkit: textarea name: hero_custom_description label: 自定义描述文案 + key: hero_custom_description if: "$get(hero_description_mode).value === 'custom'" - $formkit: attachment name: hero_background_image @@ -238,14 +241,6 @@ spec: name: home_label_all_loaded label: 无限滚动-全部加载文案 value: 已加载全部文章 - - $formkit: text - name: home_latest_title - label: 最新文章模块标题 - value: 最新文章 - - $formkit: text - name: home_label_view_all - label: 查看全部标签 - value: 查看全部 - $formkit: text name: home_label_no_posts label: 暂无文章文案 @@ -329,6 +324,19 @@ spec: - label: Masonry value: masonry value: timeline + - $formkit: select + name: moments_loading_mode + label: 加载方式 + options: + - label: 下滑加载 + value: infinite_scroll + - label: 分页 + value: pagination + value: infinite_scroll + - $formkit: number + name: moments_page_size + label: 每页显示数量 + value: 10 - group: photos label: 图库 formSchema: diff --git a/src/components/Footer.astro b/src/components/Footer.astro index b0d5d16..c0b2eac 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -10,7 +10,7 @@ const today = new Date(); © {today.getFullYear()} - + @@ -172,7 +172,6 @@ const today = new Date(); .footer-custom :global(img) { display: inline-block; - max-height: 26px; vertical-align: middle; border-radius: 4px; } @@ -208,7 +207,6 @@ const today = new Date(); .footer-injected :global(img) { display: inline-block; - max-height: 26px; vertical-align: middle; border-radius: 4px; } @@ -236,10 +234,5 @@ const today = new Date(); .footer-injected { font-size: 0.75rem; } - - .footer-custom :global(img), - .footer-injected :global(img) { - max-height: 20px; - } } diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 673e0dc..94ec934 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -44,14 +44,16 @@ import ThemeSwitcher from "./ThemeSwitcher.vue"; th:if="${pluginFinder.available('PluginSearchWidget') and theme.config?.navbar?.navbar_show_search != false}" class="wi-navbar__action-btn" type="button" - aria-label="Search" + th:aria-label="${theme.config?.basic?.label_search ?: '搜索'}" onclick="SearchWidget.open()" > - + + + diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 8ca4eb1..f5d476b 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -21,6 +21,7 @@ const { pageTitle, contentClass, wide, home } = Astro.props; + @@ -693,6 +808,41 @@ import LightGallery from "../components/LightGallery.astro"; letter-spacing: var(--tracking-wide); } + .wi-moments-page__pagination { + display: flex; + justify-content: center; + align-items: center; + gap: var(--space-lg); + margin-top: var(--space-3xl); + } + + .wi-moments-page__page-btn { + display: inline-block; + padding: 10px 24px; + border-radius: 12px; + background: var(--bg-raised); + border: 1px solid var(--rule); + color: var(--ink); + font-size: var(--text-sm); + text-decoration: none; + transition: border-color var(--duration-fast) var(--ease-out-quart), + color var(--duration-fast) var(--ease-out-quart); + } + + .wi-moments-page__page-btn:hover { + border-color: var(--accent); + color: var(--accent); + } + + .wi-moments-page__page-spacer { + flex: 1; + } + + .wi-moments-page__infinite-sentinel { + height: 1px; + width: 100%; + } + @media (max-width: 768px) { .wi-moments-page__timeline { padding-left: var(--space-xl); diff --git a/src/pages/page_messageboard.astro b/src/pages/page_messageboard.astro index 7449392..083c7f8 100644 --- a/src/pages/page_messageboard.astro +++ b/src/pages/page_messageboard.astro @@ -30,7 +30,7 @@ import Layout from "../layouts/Layout.astro"; > -
+
@@ -31,7 +33,7 @@ import LightGallery from "../components/LightGallery.astro"; - +