v1.2.4
This commit is contained in:
parent
8f812b2c12
commit
8ffb1edc96
|
|
@ -9,10 +9,7 @@ module.exports = {
|
|||
['meta', { name: 'keywords', content: '前端博客,个人技术博客,前端,前端开发,前端框架,web前端,前端面试题,技术文档,学习,面试,JavaScript,js,ES6,TypeScript,vue,python,css3,html5,Node,git,github,markdown'}],
|
||||
['meta', { name: 'baidu-site-verification', content: '7F55weZDDc'}],// 百度统计博主验证
|
||||
['meta', { name: 'theme-color', content: '#11a8cd'}], // 移动浏览器主题颜色
|
||||
|
||||
// 不蒜子访问量统计 (主题暂未使用到)
|
||||
// ['script', { src: '//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js', async: 'async'}]
|
||||
|
||||
// ['meta', { name: 'viewport', content: 'width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no'}], // 移动端阻止页面缩放
|
||||
],
|
||||
markdown: {
|
||||
lineNumbers: true // 代码行号
|
||||
|
|
|
|||
|
|
@ -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.2.3",
|
||||
"vuepress-theme-vdoing": "^1.2.4",
|
||||
"yamljs": "^0.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "vuepress-theme-vdoing",
|
||||
"version": "1.2.3",
|
||||
"version": "1.2.4",
|
||||
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
|
||||
"author": {
|
||||
"name": "gaoyi(Evan) Xu"
|
||||
|
|
|
|||
|
|
@ -266,7 +266,12 @@ export function zero(d){
|
|||
|
||||
// 获取时间的时间戳
|
||||
export function getTimeNum (post) {
|
||||
return new Date(post.frontmatter.date || post.lastUpdated).getTime()
|
||||
let dateStr = post.frontmatter.date || post.lastUpdated
|
||||
let date = new Date(dateStr)
|
||||
if (date == "Invalid Date") { // 修复new Date()在Safari下出现Invalid Date的问题
|
||||
date = new Date(dateStr.replace(/-/g, '/'))
|
||||
}
|
||||
return date.getTime()
|
||||
}
|
||||
|
||||
// 比对时间
|
||||
|
|
|
|||
Loading…
Reference in New Issue