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.
30 lines
519 B
30 lines
519 B
<template>
|
|
<div class="theme-container">
|
|
<h1>Hello VitePress</h1>
|
|
<pre>$site {{ $site }}</pre>
|
|
<pre>$page {{ $page }}</pre>
|
|
<pre>useSiteData() {{ site }}</pre>
|
|
<pre>usePageData() {{ page }}</pre>
|
|
<Content/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { useSiteData, usePageData } from 'vitepress'
|
|
|
|
export default {
|
|
setup() {
|
|
return {
|
|
site: useSiteData(),
|
|
page: usePageData()
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.theme-container {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
}
|
|
</style>
|