File tree Expand file tree Collapse file tree 2 files changed +56
-22
lines changed Expand file tree Collapse file tree 2 files changed +56
-22
lines changed Original file line number Diff line number Diff line change 1+ <template >
2+ <Layout >
3+ <template #doc-footer-before >
4+ <div style ="
5+ margin-top : 40px ;
6+ padding : 2em 0 ;
7+ text-align : center ;
8+ border-top : 1px solid #e2e2e2 ;
9+ " >
10+ <table style =" margin : 0 auto " >
11+ <tbody >
12+ <tr >
13+ <td align =" center" style =" width : 260px " >
14+ <img src =" https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/images/qrcode-for-doocs.png"
15+ style =" width : 200px " /><br />
16+ </td >
17+ <td align =" center" style =" width : 260px " >
18+ <img src =" https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/images/qrcode-for-yanglbme.png"
19+ style =" width : 200px " /><br />
20+ </td >
21+ </tr >
22+ </tbody >
23+ </table >
24+ </div >
25+ </template >
26+ </Layout >
27+ </template >
28+
29+ <script setup>
30+ import DefaultTheme from ' vitepress/theme' ;
31+ const { Layout } = DefaultTheme;
32+ </script >
Original file line number Diff line number Diff line change @@ -2,29 +2,31 @@ import DefaultTheme from 'vitepress/theme';
22import giscusTalk from 'vitepress-plugin-comment-with-giscus' ;
33import { useData , useRoute } from 'vitepress' ;
44import { toRefs } from "vue" ;
5+ import Layout from "./Layout.vue" ;
56
67export default {
7- ...DefaultTheme ,
8- enhanceApp ( ctx ) {
9- DefaultTheme . enhanceApp ( ctx ) ;
10- } ,
11- setup ( ) {
12- const { frontmatter } = toRefs ( useData ( ) ) ;
13- const route = useRoute ( ) ;
8+ extends : DefaultTheme ,
9+ Layout : Layout ,
10+ enhanceApp ( ctx ) {
11+ DefaultTheme . enhanceApp ( ctx ) ;
12+ } ,
13+ setup ( ) {
14+ const { frontmatter } = toRefs ( useData ( ) ) ;
15+ const route = useRoute ( ) ;
1416
15- giscusTalk ( {
16- repo : 'doocs/technical-books' ,
17- repoId : 'MDEwOlJlcG9zaXRvcnkxNzgwMjQ5NDk=' ,
18- mapping : 'number' ,
19- inputPosition : 'top' ,
20- lang : 'zh-CN' ,
21- homePageShowComment : true ,
22- term : '30' ,
23- lightTheme : 'light' ,
24- darkTheme : 'transparent_dark' ,
25- } , {
26- frontmatter,
27- route
28- } , true ) ;
29- }
17+ giscusTalk ( {
18+ repo : 'doocs/technical-books' ,
19+ repoId : 'MDEwOlJlcG9zaXRvcnkxNzgwMjQ5NDk=' ,
20+ mapping : 'number' ,
21+ inputPosition : 'top' ,
22+ lang : 'zh-CN' ,
23+ homePageShowComment : true ,
24+ term : '30' ,
25+ lightTheme : 'light' ,
26+ darkTheme : 'transparent_dark' ,
27+ } , {
28+ frontmatter,
29+ route
30+ } , true ) ;
31+ }
3032} ;
You can’t perform that action at this time.
0 commit comments