mirror of
https://github.com/sendevia/website.git
synced 2026-03-05 23:32:45 +08:00
初始化文章布局
This commit is contained in:
16
.vitepress/theme/layouts/Article.vue
Normal file
16
.vitepress/theme/layouts/Article.vue
Normal file
@@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<article class="article-layout">
|
||||
<header>
|
||||
<h1>{{ frontmatter.title }}</h1>
|
||||
<p v-if="frontmatter.date">发表于:{{ frontmatter.date }}</p>
|
||||
</header>
|
||||
<section>
|
||||
<Content />
|
||||
</section>
|
||||
</article>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useGlobalData } from "../composables/useGlobalData";
|
||||
const { frontmatter } = useGlobalData();
|
||||
</script>
|
||||
Reference in New Issue
Block a user