|
1 | | -import { hopeTheme } from 'vuepress-theme-hope' |
2 | | -import { AUTHOR_INFO, COPYRIGHT, FOOTER_HTML_INFO } from './constant' |
3 | | -import { i18n, searchProCNLocals } from './i18n' |
| 1 | +import {hopeTheme} from 'vuepress-theme-hope' |
| 2 | +import {AUTHOR_INFO, COPYRIGHT, FOOTER_HTML_INFO} from './constant' |
| 3 | +import {i18n, searchProCNLocals} from './i18n' |
4 | 4 | import navbar from './navbar' |
5 | 5 | import sidebar from './sidebar' |
6 | 6 |
|
@@ -32,7 +32,6 @@ export const themeConfig = { |
32 | 32 | end: ['Links', 'Language', 'Outlook', 'Search', 'Repo'], |
33 | 33 | }, |
34 | 34 | sidebar, |
35 | | - |
36 | 35 | pageInfo: ['Author', 'Original', 'Date', 'Category', 'Tag', 'ReadingTime'], |
37 | 36 | // 主题布局选项 |
38 | 37 | docsRepo: 'https://github.com/142vip/JavaScriptCollection', |
@@ -60,6 +59,9 @@ export const themeConfig = { |
60 | 59 | // 主题色选择器 |
61 | 60 | themeColor: true, |
62 | 61 |
|
| 62 | + // 是否显示外部链接图标 |
| 63 | + externalLinkIcon: false, |
| 64 | + |
63 | 65 | plugins: { |
64 | 66 | // comment:{ |
65 | 67 | // provider: "Artalk", |
@@ -92,11 +94,11 @@ export const themeConfig = { |
92 | 94 | stylize: [ |
93 | 95 | { |
94 | 96 | matcher: 'Recommended', |
95 | | - replacer: ({ tag }) => { |
| 97 | + replacer: ({tag}) => { |
96 | 98 | if (tag === 'em') { |
97 | 99 | return { |
98 | 100 | tag: 'Badge', |
99 | | - attrs: { type: 'tip' }, |
| 101 | + attrs: {type: 'tip'}, |
100 | 102 | content: 'Recommended', |
101 | 103 | } |
102 | 104 | } |
|
0 commit comments