mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 11:41:17 +02:00
update: optimize theme color scheme and waline style
This commit is contained in:
parent
755bb4a233
commit
eb3781bb6b
6 changed files with 117 additions and 21 deletions
|
@ -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 -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue