ulivz / vt

🖼️ A "Post-VuePress Era" Documentation Theme (Deprecation Warning: For a next-gen SSG, please check out Rspress.)
https://vt.insx.dev
MIT License
136 stars 10 forks source link

feat: using Vue component to define status #93

Closed ulivz closed 1 year ago

ulivz commented 1 year ago

Summary

You can specify page status via a global Vue Component, let's create .vuepress/components/GlobalStatus.vue as example:

<template>
  <span> This is page status </span>
</template>
---
status: <GlobalStatus />
---
// .vuepress/config.js
module.exports = {
  theme: "vt",
  themeConfig: {
    status: '<GlobalStatus />'
  },
};
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
vuepress-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 1, 2023 at 4:06PM (UTC)