Skip to content

Commit

Permalink
Adds a version badge (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephzidell authored May 5, 2023
1 parent 108cd95 commit 46683bd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
13 changes: 13 additions & 0 deletions docs/.vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<script setup>
import DefaultTheme from 'vitepress/theme';
const { Layout } = DefaultTheme;
</script>

<template>
<Layout>
<template #nav-bar-title-after>
<img src="https://shields.io/github/v/release/josephzidell/joelang?display_name=tag&include_prereleases&sort=semver" alt="Latest Release" />
</template>
</Layout>
</template>
6 changes: 5 additions & 1 deletion docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import DefaultTheme from 'vitepress/theme'
import Layout from './Layout.vue';
import './custom.css'

export default DefaultTheme
export default {
...DefaultTheme,
Layout: Layout,
}

0 comments on commit 46683bd

Please sign in to comment.