fuc-new/doc/node_modules/vuepress-theme-plume/lib/client/components/Blog/VPBlogAside.vue
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

33 lines
657 B
Vue

<script lang="ts" setup>
import VPBlogNav from '@theme/Blog/VPBlogNav.vue'
import VPBlogProfile from '@theme/Blog/VPBlogProfile.vue'
import { useData } from '../../composables/index.js'
const { theme } = useData()
</script>
<template>
<div v-if="theme.profile" class="vp-blog-aside">
<slot name="blog-aside-top" />
<VPBlogProfile />
<VPBlogNav />
<slot name="blog-aside-bottom" />
</div>
</template>
<style scoped>
.vp-blog-aside {
position: sticky;
top: calc(var(--vp-nav-height) + 2rem);
display: none;
width: 270px;
text-align: center;
}
@media (min-width: 768px) {
.vp-blog-aside {
display: block;
}
}
</style>