mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
515 B
22 lines
515 B
<script setup<%= useTs ? ' lang="ts"' : '' %>>
|
|
import { useData } from 'vitepress'
|
|
|
|
// https://vitepress.vuejs.org/api/
|
|
const { site, frontmatter } = useData()
|
|
</script>
|
|
|
|
<template>
|
|
<div v-if="frontmatter.home">
|
|
<h1>{{ site.title }}</h1>
|
|
<p>{{ site.description }}</p>
|
|
<ul>
|
|
<li><a href="/markdown-examples.html">Markdown Examples</a></li>
|
|
<li><a href="/api-examples.html">API Examples</a></li>
|
|
</ul>
|
|
</div>
|
|
<div v-else>
|
|
<a href="/">Home</a>
|
|
<Content />
|
|
</div>
|
|
</template>
|