fix: v1.12.8
This commit is contained in:
parent
039eafddab
commit
a086d6eba4
|
|
@ -8,6 +8,9 @@ import dayjs from 'dayjs'
|
||||||
import baiduCode from './config/baiduCode' // 百度统计hm码
|
import baiduCode from './config/baiduCode' // 百度统计hm码
|
||||||
import htmlModules from './config/htmlModules' // 自定义插入的html块
|
import htmlModules from './config/htmlModules' // 自定义插入的html块
|
||||||
|
|
||||||
|
const DOMAIN_NAME = 'xugaoyi.com' // 域名 (不带https)
|
||||||
|
const WEB_SITE = `https://${DOMAIN_NAME}` // 网址
|
||||||
|
|
||||||
export default defineConfig4CustomTheme<VdoingThemeConfig>({
|
export default defineConfig4CustomTheme<VdoingThemeConfig>({
|
||||||
theme: 'vdoing', // 使用npm主题包
|
theme: 'vdoing', // 使用npm主题包
|
||||||
// theme: resolve(__dirname, '../../vdoing'), // 使用本地主题包
|
// theme: resolve(__dirname, '../../vdoing'), // 使用本地主题包
|
||||||
|
|
@ -240,6 +243,12 @@ export default defineConfig4CustomTheme<VdoingThemeConfig>({
|
||||||
|
|
||||||
// 插件配置
|
// 插件配置
|
||||||
plugins: <UserPlugins>[
|
plugins: <UserPlugins>[
|
||||||
|
[
|
||||||
|
"sitemap", // 网站地图
|
||||||
|
{
|
||||||
|
hostname: WEB_SITE,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
'vuepress-plugin-baidu-autopush', // 百度自动推送
|
'vuepress-plugin-baidu-autopush', // 百度自动推送
|
||||||
|
|
||||||
|
|
@ -277,7 +286,7 @@ export default defineConfig4CustomTheme<VdoingThemeConfig>({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '通过百度搜索本站的',
|
title: '通过百度搜索本站的',
|
||||||
frontUrl: 'https://www.baidu.com/s?wd=site%3Axugaoyi.com%20',
|
frontUrl: `https://www.baidu.com/s?wd=site%3A${DOMAIN_NAME}%20`,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
"name": "theme-vdoing-blog",
|
"name": "theme-vdoing-blog",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vuepress dev docs",
|
"dev": "node --max_old_space_size=4096 ./node_modules/vuepress/cli.js dev docs",
|
||||||
"build": "vuepress build docs",
|
"build": "node --max_old_space_size=4096 ./node_modules/vuepress/cli.js build docs",
|
||||||
"deploy": "bash deploy.sh",
|
"deploy": "bash deploy.sh",
|
||||||
"editFm": "node utils/editFrontmatter.js",
|
"editFm": "node utils/editFrontmatter.js",
|
||||||
"baiduPush": "node utils/baiduPush.js https://xugaoyi.com && bash baiduPush.sh",
|
"baiduPush": "node utils/baiduPush.js https://xugaoyi.com && bash baiduPush.sh",
|
||||||
|
|
@ -22,9 +22,10 @@
|
||||||
"vuepress-plugin-demo-block": "^0.7.2",
|
"vuepress-plugin-demo-block": "^0.7.2",
|
||||||
"vuepress-plugin-fulltext-search": "^2.2.1",
|
"vuepress-plugin-fulltext-search": "^2.2.1",
|
||||||
"vuepress-plugin-one-click-copy": "^1.0.2",
|
"vuepress-plugin-one-click-copy": "^1.0.2",
|
||||||
|
"vuepress-plugin-sitemap": "^2.3.1",
|
||||||
"vuepress-plugin-thirdparty-search": "^1.0.2",
|
"vuepress-plugin-thirdparty-search": "^1.0.2",
|
||||||
"vuepress-plugin-zooming": "^1.1.7",
|
"vuepress-plugin-zooming": "^1.1.7",
|
||||||
"vuepress-theme-vdoing": "^1.12.7",
|
"vuepress-theme-vdoing": "^1.12.8",
|
||||||
"yamljs": "^0.3.0"
|
"yamljs": "^0.3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -206,15 +206,15 @@ dl, dd
|
||||||
dd
|
dd
|
||||||
margin-top 0.7rem
|
margin-top 0.7rem
|
||||||
margin-left 1rem
|
margin-left 1rem
|
||||||
a:not(.header-anchor)
|
a:not(.header-anchor)
|
||||||
margin-bottom 0.5rem
|
margin-bottom 0.5rem
|
||||||
display inline-block
|
display inline-block
|
||||||
width 50%
|
width 50%
|
||||||
&:hover
|
&:hover
|
||||||
color $activeColor
|
color $activeColor
|
||||||
text-decoration none
|
text-decoration none
|
||||||
@media (max-width $MQMobileNarrow)
|
@media (max-width 720px)
|
||||||
width 100%
|
width 100%
|
||||||
.sub-cat-wrap
|
.sub-cat-wrap
|
||||||
margin 5px 0 8px 0
|
margin 5px 0 8px 0
|
||||||
font-size 0.95rem
|
font-size 0.95rem
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "vuepress-theme-vdoing",
|
"name": "vuepress-theme-vdoing",
|
||||||
"version": "1.12.7",
|
"version": "1.12.8",
|
||||||
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
|
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "gaoyi(Evan) Xu"
|
"name": "gaoyi(Evan) Xu"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue