fix: v1.12.8

This commit is contained in:
xugaoyi 2022-08-18 14:19:14 +08:00
parent 039eafddab
commit a086d6eba4
4 changed files with 24 additions and 14 deletions

View File

@ -8,6 +8,9 @@ import dayjs from 'dayjs'
import baiduCode from './config/baiduCode' // 百度统计hm码
import htmlModules from './config/htmlModules' // 自定义插入的html块
const DOMAIN_NAME = 'xugaoyi.com' // 域名 (不带https)
const WEB_SITE = `https://${DOMAIN_NAME}` // 网址
export default defineConfig4CustomTheme<VdoingThemeConfig>({
theme: 'vdoing', // 使用npm主题包
// theme: resolve(__dirname, '../../vdoing'), // 使用本地主题包
@ -240,6 +243,12 @@ export default defineConfig4CustomTheme<VdoingThemeConfig>({
// 插件配置
plugins: <UserPlugins>[
[
"sitemap", // 网站地图
{
hostname: WEB_SITE,
},
],
'vuepress-plugin-baidu-autopush', // 百度自动推送
@ -277,7 +286,7 @@ export default defineConfig4CustomTheme<VdoingThemeConfig>({
},
{
title: '通过百度搜索本站的',
frontUrl: 'https://www.baidu.com/s?wd=site%3Axugaoyi.com%20',
frontUrl: `https://www.baidu.com/s?wd=site%3A${DOMAIN_NAME}%20`,
},
],
}

View File

@ -2,8 +2,8 @@
"name": "theme-vdoing-blog",
"version": "1.0.0",
"scripts": {
"dev": "vuepress dev docs",
"build": "vuepress build docs",
"dev": "node --max_old_space_size=4096 ./node_modules/vuepress/cli.js dev docs",
"build": "node --max_old_space_size=4096 ./node_modules/vuepress/cli.js build docs",
"deploy": "bash deploy.sh",
"editFm": "node utils/editFrontmatter.js",
"baiduPush": "node utils/baiduPush.js https://xugaoyi.com && bash baiduPush.sh",
@ -22,9 +22,10 @@
"vuepress-plugin-demo-block": "^0.7.2",
"vuepress-plugin-fulltext-search": "^2.2.1",
"vuepress-plugin-one-click-copy": "^1.0.2",
"vuepress-plugin-sitemap": "^2.3.1",
"vuepress-plugin-thirdparty-search": "^1.0.2",
"vuepress-plugin-zooming": "^1.1.7",
"vuepress-theme-vdoing": "^1.12.7",
"vuepress-theme-vdoing": "^1.12.8",
"yamljs": "^0.3.0"
}
}

View File

@ -206,15 +206,15 @@ dl, dd
dd
margin-top 0.7rem
margin-left 1rem
a:not(.header-anchor)
margin-bottom 0.5rem
display inline-block
width 50%
&:hover
color $activeColor
text-decoration none
@media (max-width $MQMobileNarrow)
width 100%
a:not(.header-anchor)
margin-bottom 0.5rem
display inline-block
width 50%
&:hover
color $activeColor
text-decoration none
@media (max-width 720px)
width 100%
.sub-cat-wrap
margin 5px 0 8px 0
font-size 0.95rem

View File

@ -1,6 +1,6 @@
{
"name": "vuepress-theme-vdoing",
"version": "1.12.7",
"version": "1.12.8",
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
"author": {
"name": "gaoyi(Evan) Xu"