diff --git a/Aurora-theme/lib/client/components/Page.vue b/Aurora-theme/lib/client/components/Page.vue index 6d50f9e1..beca58dc 100644 --- a/Aurora-theme/lib/client/components/Page.vue +++ b/Aurora-theme/lib/client/components/Page.vue @@ -2,7 +2,7 @@
-
+
@@ -36,7 +36,6 @@ import RecommendPage from "./RecommendPage"; import {usePageData} from "@vuepress/client"; import PageNext from "./child/page/PageNext"; import $ from 'jquery' -import {useThemeLocaleData} from "../composables"; const AV = require('leancloud-storage'); export default defineComponent({ name: 'Page', @@ -54,7 +53,8 @@ export default defineComponent({ posterContent: '', title: '', showMobileCatalog: true, - showPageMeta: true + showPageMeta: true, + isHideH1: true } }, props: { @@ -90,6 +90,10 @@ export default defineComponent({ const page = usePageData() this.originPageData = page + if (page.value.frontmatter.title === undefined) { + this.isHideH1 = false + } + this.$emit('getHeadLine',page.value.title) let lazyLoadingImg = this.themeProperty.lazyLoadingImg this.lazyLoadingImg = lazyLoadingImg === undefined ? "https://ooszy.cco.vin/img/blog-public/ljz.gif" : lazyLoadingImg diff --git a/Aurora-theme/lib/client/styles/theme.style.css b/Aurora-theme/lib/client/styles/theme.style.css index d5ced7af..d3038c8d 100644 --- a/Aurora-theme/lib/client/styles/theme.style.css +++ b/Aurora-theme/lib/client/styles/theme.style.css @@ -946,7 +946,7 @@ a[data-v-d8ec41bc] { margin: 0 auto } -.medium-zoom-content h1:first-of-type { +.hide-h1-tag h1:first-of-type { display: none } diff --git a/docs/readme/readme.md b/docs/readme/readme.md index ee8242a5..5c6a55fd 100644 --- a/docs/readme/readme.md +++ b/docs/readme/readme.md @@ -1,3 +1,9 @@ +--- +title: 这是frontmatter +--- + +# 介绍 + ## Introduce Demo