This commit is contained in:
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -2,5 +2,6 @@
|
|||||||
"files.exclude": {
|
"files.exclude": {
|
||||||
"**/*.png": true,
|
"**/*.png": true,
|
||||||
"**/*.webp": true
|
"**/*.webp": true
|
||||||
}
|
},
|
||||||
|
"editor.tabSize": 2
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
home: true
|
home: true
|
||||||
layout: BlogHome
|
layout: Blog
|
||||||
icon: home
|
icon: home
|
||||||
title: 主页
|
title: 主页
|
||||||
heroImage: /assets/images/avatar.webp
|
heroImage: /assets/images/avatar.webp
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
home: true
|
||||||
layout: FriendsHome
|
layout: FriendsHome
|
||||||
icon: link
|
icon: link
|
||||||
index: false
|
index: false
|
||||||
|
13
package.json
13
package.json
@ -10,14 +10,15 @@
|
|||||||
"up-deps": "pnpm dlx vp-update"
|
"up-deps": "pnpm dlx vp-update"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vuepress/bundler-vite": "2.0.0-rc.19",
|
"@vuepress/bundler-vite": "2.0.0-rc.23",
|
||||||
"@vuepress/plugin-docsearch": "2.0.0-rc.76",
|
"@vuepress/plugin-docsearch": "2.0.0-rc.108",
|
||||||
"@vuepress/plugin-remove-pwa": "2.0.0-rc.103",
|
"@vuepress/plugin-remove-pwa": "2.0.0-rc.103",
|
||||||
"katex": "^0.16.21",
|
"katex": "^0.16.22",
|
||||||
"mermaid": "^11.6.0",
|
"mermaid": "^11.6.0",
|
||||||
"vue": "^3.5.13",
|
"sass-embedded": "^1.89.2",
|
||||||
"vuepress": "2.0.0-rc.19",
|
"vue": "^3.5.16",
|
||||||
"vuepress-theme-hope": "2.0.0-rc.71"
|
"vuepress": "2.0.0-rc.23",
|
||||||
|
"vuepress-theme-hope": "2.0.0-rc.92"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.15.3+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a"
|
"packageManager": "pnpm@9.15.3+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a"
|
||||||
}
|
}
|
||||||
|
3429
pnpm-lock.yaml
generated
3429
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
14
src/components/MarkdownContent.vue
Normal file
14
src/components/MarkdownContent.vue
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<template>
|
||||||
|
<HopeMarkdownContent v-bind="$attrs" data-clarity-region="article">
|
||||||
|
<template #contentBefore>
|
||||||
|
<slot name="contentBefore" />
|
||||||
|
</template>
|
||||||
|
<template #contentAfter>
|
||||||
|
<slot name="contentAfter" />
|
||||||
|
</template>
|
||||||
|
</HopeMarkdownContent>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import HopeMarkdownContent from 'vuepress-theme-hope/components/base/MarkdownContent'
|
||||||
|
</script>
|
@ -1,14 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<BlogWrapper>
|
<Layout>
|
||||||
<div class="vp-page vp-blog">
|
<template #heroInfo="{ text, tagline, style, isFullScreen }">
|
||||||
<BlogHero>
|
<HitokotoBlogHero v-if="text" :text="text" :alt="text" />
|
||||||
<template #info="{ tagline, isFullScreen, text, alt }">
|
</template>
|
||||||
<HitokotoBlogHero v-if="text" :text="text" :alt="alt" />
|
<template #heroBg>
|
||||||
</template>
|
<BingHeroBackground />
|
||||||
<template #bg>
|
</template>
|
||||||
<BingHeroBackground />
|
<template #content>
|
||||||
</template>
|
|
||||||
</BlogHero>
|
|
||||||
<div class="blog-page-wrapper">
|
<div class="blog-page-wrapper">
|
||||||
<main id="main-content" class="vp-blog-main friends round-avatar">
|
<main id="main-content" class="vp-blog-main friends round-avatar">
|
||||||
<DropTransition appear :delay="0.16">
|
<DropTransition appear :delay="0.16">
|
||||||
@ -25,25 +23,27 @@
|
|||||||
<InfoPanel />
|
<InfoPanel />
|
||||||
</DropTransition>
|
</DropTransition>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</template>
|
||||||
</BlogWrapper>
|
</Layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import BlogHero from 'vuepress-theme-hope/blog/components/BlogHero.js'
|
import InfoPanel from 'vuepress-theme-hope/components/blog/InfoPanel'
|
||||||
import BlogWrapper from 'vuepress-theme-hope/blog/components/BlogWrapper.js'
|
import ProjectPanel from 'vuepress-theme-hope/components/blog/ProjectPanel'
|
||||||
import InfoPanel from 'vuepress-theme-hope/blog/components/InfoPanel.js'
|
import DropTransition from 'vuepress-theme-hope/components/transitions/DropTransition'
|
||||||
import ProjectPanel from 'vuepress-theme-hope/blog/components/ProjectPanel.js'
|
import Layout from 'vuepress-theme-hope/layouts/base/Layout.js'
|
||||||
import MarkdownContent from 'vuepress-theme-hope/components/MarkdownContent.js'
|
|
||||||
import { DropTransition } from 'vuepress-theme-hope/components/transitions/DropTransition.js'
|
|
||||||
import BingHeroBackground from 'vuepress-theme-hope/presets/BingHeroBackground.js'
|
import BingHeroBackground from 'vuepress-theme-hope/presets/BingHeroBackground.js'
|
||||||
import HitokotoBlogHero from 'vuepress-theme-hope/presets/HitokotoBlogHero.js'
|
import HitokotoBlogHero from 'vuepress-theme-hope/presets/HitokotoBlogHero.js'
|
||||||
|
|
||||||
import 'vuepress-theme-hope/modules/blog/styles/home.scss'
|
|
||||||
import friends from "../friends"
|
import friends from "../friends"
|
||||||
|
import MarkdownContent from '../components/MarkdownContent.vue'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.vp-hero-info {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
main.friends.round-avatar {
|
main.friends.round-avatar {
|
||||||
.vp-project-card {
|
.vp-project-card {
|
||||||
img.vp-project-icon {
|
img.vp-project-icon {
|
||||||
|
Reference in New Issue
Block a user