Skip to content

Commit

Permalink
refactor(vitepress): themeConfig.zoeVersion in Zoe-Version.vue undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpatrickdev committed Feb 9, 2024
1 parent e06b4f8 commit 0be2346
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions main/.vitepress/components/Zoe-Version.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<script setup>
import { useData } from 'vitepress'
const { theme } = useData()
const { zoeVersion, zoeDocsUpdated } = theme.value
</script>

<template>
<div class="zoe-version">
Zoe {{$themeConfig.zoeVersion}}. Last updated
{{$themeConfig.zoeDocsUpdated}}.
Zoe {{ zoeVersion }}. Last updated
{{ zoeDocsUpdated }}.
</div>
</template>

0 comments on commit 0be2346

Please sign in to comment.