Skip to content

Commit d4ddfd9

Browse files
author
reco_luan
committed
feat: add theme version in footer
1 parent 182dd29 commit d4ddfd9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

components/Footer.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="footer-wrapper">
33
<span>
44
<i class="iconfont reco-theme"></i>
5-
<a target="blank" href="https://vuepress-theme-reco.recoluan.com">VuePress-theme-reco</a>
5+
<a target="blank" href="https://vuepress-theme-reco.recoluan.com">{{`vuepress-theme-reco@${version}`}}</a>
66
</span>
77
<span v-if="$themeConfig.record">
88
<i class="iconfont reco-beian"></i>
@@ -29,7 +29,13 @@
2929
</template>
3030

3131
<script>
32+
import { version } from '../package.json'
3233
export default {
34+
data () {
35+
return {
36+
version
37+
}
38+
},
3339
computed: {
3440
year () {
3541
return new Date().getFullYear()

0 commit comments

Comments
 (0)