-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
37,033 additions
and
35,671 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,40 @@ | ||
import { HeadTags } from 'vuepress/config' | ||
|
||
export default <HeadTags>[ | ||
['link', { rel: 'icon', href: '/favicon.ico' }], //站点图标, 默认为 public/favicon.ico | ||
[ | ||
'meta', | ||
{ | ||
name: 'viewport', | ||
content: 'width=device-width,initial-scale=1,user-scalable=no' | ||
} | ||
], | ||
[ | ||
'meta', | ||
{ | ||
name: 'keywords', | ||
content: | ||
'个人学习笔记,前端学习笔记,前端学习,前端学习资源,前端学习路线,HTML,CSS,JavaScript,Vue,React' | ||
} | ||
], | ||
['meta', { name: 'theme-color', content: '#204A7A' }], | ||
[ | ||
'link', | ||
{ | ||
rel: 'stylesheet', | ||
href: '//at.alicdn.com/t/font_3114978_qe0b39no76.css' | ||
} | ||
] | ||
['link', { rel: 'icon', href: '/favicon.ico' }], //站点图标, 默认为 public/favicon.ico | ||
[ | ||
'meta', | ||
{ | ||
name: 'viewport', | ||
content: 'width=device-width,initial-scale=1,user-scalable=no' | ||
} | ||
], | ||
[ | ||
'meta', | ||
{ | ||
name: 'keywords', | ||
content: | ||
'个人学习笔记,前端学习笔记,前端学习,前端学习资源,前端学习路线,HTML,CSS,JavaScript,Vue,React' | ||
} | ||
], | ||
['meta', { name: 'theme-color', content: '#204A7A' }], | ||
[ | ||
'link', | ||
{ | ||
rel: 'stylesheet', | ||
href: '//at.alicdn.com/t/font_3114978_qe0b39no76.css' | ||
} | ||
], | ||
['link', | ||
{ | ||
rel: 'stylesheet', | ||
href: 'https://unpkg.com/@waline/client@v2/dist/waline.css' | ||
} | ||
], | ||
[ | ||
'script', | ||
{ | ||
src: 'https://unpkg.com/@waline/client@v2/dist/waline.js' | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,61 +6,76 @@ import fs from 'fs' | |
// @ts-ignore | ||
import dayjs from 'dayjs' | ||
import { resolve } from 'path' | ||
import type { SmPlayerPluginOption } from 'vuepress-plugin-smplayer/types' | ||
|
||
|
||
// 配置插件,推荐使用 Babel 式, 根据自己插件情况修改插件配置 | ||
export default <UserPlugins>[ | ||
// [ | ||
// 'sitemap', | ||
// { | ||
// hostname: `https://${fs.readFileSync( | ||
// resolve(__dirname, '../public', 'CNAME') | ||
// )}` | ||
// } | ||
// ], | ||
['pangu'], | ||
[ | ||
'one-click-copy', | ||
{ | ||
copySelector: [ | ||
'div[class*="language-"] pre', | ||
'div[class*="aside-code"] aside' | ||
], | ||
copyMessage: '复制成功', | ||
duration: 1000, | ||
showInMobile: false | ||
} | ||
], | ||
[ | ||
'zooming', | ||
{ | ||
selector: '.theme-vdoing-content img:not(.no-zoom)', // 排除class是no-zoom的图片 | ||
options: { | ||
bgColor: 'rgba(0,0,0,0.6)' | ||
} | ||
} | ||
], | ||
['fulltext-search'], | ||
[ | ||
'demo-block', // demo演示模块 https://github.com/xiguaxigua/vuepress-plugin-demo-block | ||
{ | ||
settings: { | ||
// jsLib: ['http://xxx'], // 在线示例(jsfiddle, codepen)中的js依赖 | ||
// cssLib: ['http://xxx'], // 在线示例中的css依赖 | ||
vue: 'https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js', // 在线示例中的vue依赖 | ||
jsfiddle: true, // 是否显示 jsfiddle 链接 | ||
codepen: true, // 是否显示 codepen 链接 | ||
horizontal: false // 是否展示为横向样式 | ||
} | ||
} | ||
], | ||
[ | ||
'@vuepress/last-updated', // "上次更新"时间格式 | ||
{ | ||
transformer: (timestamp, lang) => { | ||
return dayjs(timestamp).format('YYYY/MM/DD, HH:mm:ss') | ||
} | ||
} | ||
], | ||
['@vuepress/nprogress'] | ||
// [ | ||
// 'sitemap', | ||
// { | ||
// hostname: `https://${fs.readFileSync( | ||
// resolve(__dirname, '../public', 'CNAME') | ||
// )}` | ||
// } | ||
// ], | ||
['pangu'], | ||
[ | ||
'one-click-copy', | ||
{ | ||
copySelector: [ | ||
'div[class*="language-"] pre', | ||
'div[class*="aside-code"] aside' | ||
], | ||
copyMessage: '复制成功', | ||
duration: 1000, | ||
showInMobile: false | ||
} | ||
], | ||
[ | ||
'zooming', | ||
{ | ||
selector: '.theme-vdoing-content img:not(.no-zoom)', // 排除class是no-zoom的图片 | ||
options: { | ||
bgColor: 'rgba(0,0,0,0.6)' | ||
} | ||
} | ||
], | ||
['fulltext-search'], | ||
[ | ||
'demo-block', // demo演示模块 https://github.com/xiguaxigua/vuepress-plugin-demo-block | ||
{ | ||
settings: { | ||
// jsLib: ['http://xxx'], // 在线示例(jsfiddle, codepen)中的js依赖 | ||
// cssLib: ['http://xxx'], // 在线示例中的css依赖 | ||
vue: 'https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js', // 在线示例中的vue依赖 | ||
jsfiddle: true, // 是否显示 jsfiddle 链接 | ||
codepen: true, // 是否显示 codepen 链接 | ||
horizontal: false // 是否展示为横向样式 | ||
} | ||
} | ||
], | ||
[ | ||
'@vuepress/last-updated', // "上次更新"时间格式 | ||
{ | ||
transformer: (timestamp, lang) => { | ||
return dayjs(timestamp).format('YYYY/MM/DD, HH:mm:ss') | ||
} | ||
} | ||
], | ||
['@vuepress/nprogress'], | ||
[ | ||
'vuepress-plugin-comment-plus', | ||
{ | ||
choosen: 'waline', | ||
// options选项中的所有参数,会传给Waline的配置 | ||
options: { | ||
el: '#valine-vuepress-comment', | ||
serverURL: 'https://waline-comment-container-rjrabjk7j-simon1uo.vercel.app/', | ||
path: '<%- frontmatter.permalink %>', | ||
dark: 'body.theme-mode-dark', | ||
login: 'force', | ||
emoji: ['//unpkg.com/@waline/[email protected]/alus', '//unpkg.com/@waline/[email protected]/tw-emoji'] | ||
} | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.