update: optimize theme color scheme and waline style

This commit is contained in:
radishzzz 2025-03-07 17:36:34 +00:00
parent 755bb4a233
commit eb3781bb6b
6 changed files with 117 additions and 21 deletions

View file

@ -24,6 +24,10 @@ interface Props {
const { postTitle, postDescription, postImage } = Astro.props
const { isHome, isPost } = getPagePath(Astro.url.pathname)
const fontStyle = themeConfig.global.fontStyle === 'serif' ? 'font-serif' : 'font-sans'
const footerMarginClass = isPost && themeConfig.comment?.waline?.serverURL
? 'mt-8'
: 'mt-12'
---
<html
@ -50,7 +54,7 @@ const fontStyle = themeConfig.global.fontStyle === 'serif' ? 'font-serif' : 'fon
<main class="col-start-1 row-start-1">
<slot />
</main>
<Footer class="mt-13 block lg:hidden" />
<Footer class={`block lg:hidden ${footerMarginClass}`} />
</div>
<!-- fix position issue on ios -->