diff --git a/theme/package.json b/theme/package.json index 383b5e26..9054b2aa 100644 --- a/theme/package.json +++ b/theme/package.json @@ -104,11 +104,11 @@ "local-pkg": "^0.5.0", "nanoid": "^5.0.7", "vue": "^3.4.38", - "vue-router": "^4.4.3", "vuepress-plugin-md-enhance": "2.0.0-rc.52", "vuepress-plugin-md-power": "workspace:*" }, "devDependencies": { - "@iconify/json": "^2.2.243" + "@iconify/json": "^2.2.243", + "vue-router": "^4.4.3" } } diff --git a/theme/src/client/components/Blog/VPBlog.vue b/theme/src/client/components/Blog/VPBlog.vue index 9ed725d4..e279dbc7 100644 --- a/theme/src/client/components/Blog/VPBlog.vue +++ b/theme/src/client/components/Blog/VPBlog.vue @@ -9,11 +9,17 @@ import VPBlogNav from '@theme/Blog/VPBlogNav.vue' import VPTransitionFadeSlideY from '@theme/VPTransitionFadeSlideY.vue' import { useData } from '../../composables/index.js' +defineProps<{ + homeBlog?: boolean + type?: string + onlyOnce?: boolean +}>() + const { theme, page } = useData() - + @@ -96,6 +102,12 @@ const { theme, page } = useData() transition: background-color var(--t-color); } +@media(min-width: 419px) { + .vp-blog.home-blog { + background-color: var(--vp-c-bg-alt); + } +} + .blog-container { display: flex; align-items: flex-start; diff --git a/theme/src/client/components/Blog/VPPostList.vue b/theme/src/client/components/Blog/VPPostList.vue index bb876238..45e3779e 100644 --- a/theme/src/client/components/Blog/VPPostList.vue +++ b/theme/src/client/components/Blog/VPPostList.vue @@ -1,9 +1,14 @@