This commit is contained in:
xugaoyi 2020-08-24 22:19:00 +08:00
parent 9c4b8ace6b
commit d949cb0a77
4 changed files with 14 additions and 12 deletions

View File

@ -3,7 +3,7 @@ const nav = require('./config/nav.js');
module.exports = {
title: "Evan's blog",
description: 'web前端技术博客,简洁至上,专注web前端学习与总结。JavaScript,js,ES6,TypeScript,vue,python,css3,html5,Node,git,github等技术文章。', // 描述,以 <meta> 标签渲染到页面html中
// base: '/vuepress-theme-vdoing/', // '/<github仓库名>/' 默认'/'
// base: '/vuepress-theme-vdoing/', // '/<github仓库名>/' 默认'/'
head: [ // 注入到页面<head> 中的标签,格式[tagName, { attrName: attrValue }, innerHTML?]
['link', { rel: 'icon', href: '/img/favicon.ico' }], //favicons资源放在public文件夹
['meta', { name: 'keywords', content: '前端博客,个人技术博客,前端,前端开发,前端框架,web前端,前端面试题,技术文档,学习,面试,JavaScript,js,ES6,TypeScript,vue,python,css3,html5,Node,git,github,markdown'}],
@ -29,12 +29,13 @@ module.exports = {
editLinks: true, // 启用编辑
editLinkText: '编辑',
// 以下配置是Vdoing主题改动和新增的配置
//*** 以下配置是Vdoing主题改动和新增的配置 ***//
// category: false, // 是否打开分类功能默认true。 如打开会做的事情有1. 自动生成的frontmatter包含分类字段 2.页面中显示与分类相关的信息和模块 3.自动生成分类页面(在@pages文件夹。如关闭则反之。
// tag: false, // 是否打开标签功能默认true。 如打开会做的事情有1. 自动生成的frontmatter包含标签字段 2.页面中显示与标签相关的信息和模块 3.自动生成标签页面(在@pages文件夹。如关闭则反之。
// archive: false, // 是否打开归档功能默认true。 如打开会做的事情有1.自动生成归档页面(在@pages文件夹。如关闭则反之。
// categoryText: '随笔', // 碎片化文章_posts文件夹的文章预设生成的分类值默认'随笔'
// bodyBgImg: [
// 'https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200507175828.jpeg',
// 'https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200507175845.jpeg',
@ -54,9 +55,10 @@ module.exports = {
// moreArticle: '/archives' // “更多文章”跳转的页面,默认'/archives'
// },
// sidebarOpen: false, // 初始状态是否打开侧边栏默认true
// pageButton: false, // 是否显示快捷翻页按钮默认true
sidebar: 'structuring', // 侧边栏 'structuring' | { mode: 'structuring', collapsable: Boolean} | 'auto' | 自定义 温馨提示:目录页数据依赖于结构化的侧边栏数据,如果你不设置为'structuring',将无法使用目录页
author: { // 文章默认的作者信息可在md文件中单独配置此信息 String | {name: String, link: String}
name: 'xugaoyi', // 必需
link: 'https://github.com/xugaoyi' // 可选的
@ -159,7 +161,7 @@ module.exports = {
[
'vuepress-plugin-comment', // 评论
// {
// choosen: 'valine',
// choosen: 'valine',
// options: {
// el: '#valine-vuepress-comment',
// appId: 'qnS1jobNF7CROIQ0XYWBnVOH-gzGzoHsz',
@ -168,7 +170,7 @@ module.exports = {
// }
// },
{
choosen: 'gitalk',
choosen: 'gitalk',
options: {
clientID: 'a6e1355287947096b88b',
clientSecret: 'f0e77d070fabfcd5af95bebb82b2d574d7248d71',

View File

@ -21,7 +21,7 @@
"vuepress-plugin-one-click-copy": "^1.0.2",
"vuepress-plugin-thirdparty-search": "^1.0.2",
"vuepress-plugin-zooming": "^1.1.7",
"vuepress-theme-vdoing": "^1.4.2",
"vuepress-theme-vdoing": "^1.4.3",
"yamljs": "^0.3.0"
},
"dependencies": {

View File

@ -1,7 +1,7 @@
<template>
<div class="page-nav-wapper">
<!-- 页面中间左右翻页 -->
<div class="page-nav-centre-wrap" v-if="prev || next">
<div class="page-nav-centre-wrap" v-if="$themeConfig.pageButton !== false && (prev || next)">
<router-link
class="page-nav-centre page-nav-centre-prev"
v-if="prev"
@ -27,7 +27,7 @@
</div>
</router-link>
</div>
<!-- 底部翻页按钮 -->
<div class="page-nav" v-if="prev || next">
<p class="inner">
@ -181,7 +181,7 @@ function flatten (items, res) {
z-index 99
@media (max-width: 1340px)
width 50px
@media (max-width: 960px)
@media (max-width: 960px)
display none
&:hover
background rgba(153, 153, 153, .15)

View File

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