add 永久链接
This commit is contained in:
parent
17e5fc3619
commit
e2378abfdb
|
|
@ -1,19 +1,19 @@
|
|||
module.exports = [
|
||||
{text: '首页', link: '/'},
|
||||
|
||||
{text: '前端', link: '/70d1485bb4e5754b/'},
|
||||
{text: '页面', link: '/0a83b083bdf257cb/'},
|
||||
{text: '技术杂谈', link: '/9a7ee40fc232253e/'},
|
||||
{text: '前端', link: '/pages/70d1485bb4e5754b/'},
|
||||
{text: '页面', link: '/pages/0a83b083bdf257cb/'},
|
||||
{text: '技术杂谈', link: '/pages/9a7ee40fc232253e/'},
|
||||
{text: '其他',
|
||||
items: [
|
||||
{text: '学习', link: '/2e9ba3fa6e1ed0e9/'},
|
||||
{text: '学习笔记', link: '/236ec09c26876b59/'},
|
||||
{text: '面试', link: '/aea6571b7a8bae86/'},
|
||||
{text: '在线工具', link: '/9c2232288caaa8ec/'},
|
||||
{text: '友情链接', link: '/844eea1b2387fb96/'},
|
||||
{text: '学习', link: '/pages/2e9ba3fa6e1ed0e9/'},
|
||||
{text: '学习笔记', link: '/pages/236ec09c26876b59/'},
|
||||
{text: '面试', link: '/pages/aea6571b7a8bae86/'},
|
||||
{text: '在线工具', link: '/pages/9c2232288caaa8ec/'},
|
||||
{text: '友情链接', link: '/pages/844eea1b2387fb96/'},
|
||||
]
|
||||
},
|
||||
{text: '关于我', link: '/6483e31017cf298b/'},
|
||||
{text: '关于我', link: '/pages/6483e31017cf298b/'},
|
||||
|
||||
// {text: '前端', link: '/01.前端/01.JavaScript/01.JavaScript中的名词概念'},
|
||||
// {text: '页面', link: '/02.页面/01.html-css/00.flex布局语法'},
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: JavaScript中的名词概念
|
||||
date: 2019-12-25
|
||||
permalink: 70d1485bb4e5754b
|
||||
permalink: /pages/70d1485bb4e5754b
|
||||
---
|
||||
|
||||
# JavaScript中的名词概念
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: 数据类型转换
|
||||
date: 2019-12-25
|
||||
permalink: d039d42572a97b66
|
||||
permalink: /pages/d039d42572a97b66
|
||||
---
|
||||
# 数据类型转换
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: ES5面向对象
|
||||
date: 2019-12-25
|
||||
permalink: b1af5cb8996363c5
|
||||
permalink: /pages/b1af5cb8996363c5
|
||||
---
|
||||
# ES5面向对象
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: ES6面向对象
|
||||
date: 2019-12-25
|
||||
permalink: 1f4123be6f45abcd
|
||||
permalink: /pages/1f4123be6f45abcd
|
||||
---
|
||||
# ES6面向对象
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: new命令原理
|
||||
date: 2019-12-25
|
||||
permalink: 8143cc480faf9a11
|
||||
permalink: /pages/8143cc480faf9a11
|
||||
---
|
||||
# new命令原理
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: 多种数组去重性能对比
|
||||
date: 2019-12-25
|
||||
permalink: e808fba1fa8fbab2
|
||||
permalink: /pages/e808fba1fa8fbab2
|
||||
---
|
||||
# 多种数组去重性能对比
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: flex布局语法
|
||||
date: 2019-12-25
|
||||
permalink: 0a83b083bdf257cb
|
||||
permalink: /pages/0a83b083bdf257cb
|
||||
---
|
||||
# flex布局语法
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: flex布局案例-基础
|
||||
date: 2019-12-25
|
||||
permalink: ea6db1530c42ad51
|
||||
permalink: /pages/ea6db1530c42ad51
|
||||
---
|
||||
# flex布局案例-基础
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: flex布局案例-骰子
|
||||
date: 2019-12-25
|
||||
permalink: eff61bc8b4f4695d
|
||||
permalink: /pages/eff61bc8b4f4695d
|
||||
---
|
||||
# flex布局案例-骰子
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: flex布局案例-网格布局
|
||||
date: 2019-12-25
|
||||
permalink: 85b5a3fe218a34b7
|
||||
permalink: /pages/85b5a3fe218a34b7
|
||||
---
|
||||
# flex布局案例-网格布局
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: flex布局案例-圣杯布局
|
||||
date: 2019-12-25
|
||||
permalink: df9e7c7214fa5046
|
||||
permalink: /pages/df9e7c7214fa5046
|
||||
---
|
||||
# flex布局案例-圣杯布局
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: flex布局案例-输入框布局
|
||||
date: 2019-12-25
|
||||
permalink: 05cc577fb51c7998
|
||||
permalink: /pages/05cc577fb51c7998
|
||||
---
|
||||
# flex布局案例-输入框布局
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: CSS3之transform过渡
|
||||
date: 2019-12-25
|
||||
permalink: 02d7f59d98d87409
|
||||
permalink: /pages/02d7f59d98d87409
|
||||
---
|
||||
# CSS3之transform过渡
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: CSS3之animation动画
|
||||
date: 2019-12-25
|
||||
permalink: c2c0432138f6e042
|
||||
permalink: /pages/c2c0432138f6e042
|
||||
---
|
||||
# CSS3之animation动画
|
||||
先上代码,[效果](#效果)在后面
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: Git使用手册
|
||||
date: 2019-12-25
|
||||
permalink: 9a7ee40fc232253e
|
||||
permalink: /pages/9a7ee40fc232253e
|
||||
---
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: GitHub高级搜索技巧
|
||||
date: 2019-12-25
|
||||
permalink: 4c778760be26d8b3
|
||||
permalink: /pages/4c778760be26d8b3
|
||||
---
|
||||
# GitHub高级搜索技巧
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: Markdown使用教程
|
||||
date: 2019-12-25
|
||||
permalink: ad247c4332211551
|
||||
permalink: /pages/ad247c4332211551
|
||||
---
|
||||
# Markdown使用教程
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: npm常用命令
|
||||
date: 2019-12-25
|
||||
permalink: 61f2f95fd7da14fd
|
||||
permalink: /pages/61f2f95fd7da14fd
|
||||
---
|
||||
# npm常用命令
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: yaml语言教程
|
||||
date: 2019-12-25
|
||||
permalink: 4e8444e2d534d14f
|
||||
permalink: /pages/4e8444e2d534d14f
|
||||
---
|
||||
# yaml语言教程
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: 解决百度无法收录搭建在GitHub上的个人博客的问题
|
||||
date: 2019-12-25
|
||||
permalink: 41f87d890d0a02af
|
||||
permalink: /pages/41f87d890d0a02af
|
||||
---
|
||||
# 解决百度无法收录搭建在GitHub上的静态博客的问题
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: 使用Gitalk实现静态博客无后台评论系统
|
||||
date: 2019-12-25
|
||||
permalink: 1da0bf9a988eafe5
|
||||
permalink: /pages/1da0bf9a988eafe5
|
||||
---
|
||||
# 使用Gitalk实现静态博客无后台评论系统
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: 学习网站
|
||||
date: 2019-12-25
|
||||
permalink: 2e9ba3fa6e1ed0e9
|
||||
permalink: /pages/2e9ba3fa6e1ed0e9
|
||||
---
|
||||
# 学习网站
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: 学习效率低,忘性很大怎么办?
|
||||
date: 2019-12-25
|
||||
permalink: 839158575e5c4866
|
||||
permalink: /pages/839158575e5c4866
|
||||
---
|
||||
# 学习效率低,忘性很大怎么办?
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: 小程序笔记
|
||||
date: 2019-12-25
|
||||
permalink: 236ec09c26876b59
|
||||
permalink: /pages/236ec09c26876b59
|
||||
---
|
||||
## 基础课程部分
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: 面试问题集锦
|
||||
date: 2019-12-25
|
||||
permalink: aea6571b7a8bae86
|
||||
permalink: /pages/aea6571b7a8bae86
|
||||
---
|
||||
# 面试问题集锦
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: 在线工具
|
||||
date: 2019-12-25
|
||||
permalink: 9c2232288caaa8ec
|
||||
permalink: /pages/9c2232288caaa8ec
|
||||
---
|
||||
# 在线工具
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
title: 友情链接
|
||||
date: 2019-12-25
|
||||
permalink: 844eea1b2387fb96
|
||||
permalink: /pages/844eea1b2387fb96
|
||||
---
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: 关于我
|
||||
date: 2019-12-25
|
||||
permalink: 6483e31017cf298b
|
||||
permalink: /pages/6483e31017cf298b
|
||||
---
|
||||
## 关于我
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ function writeFrontMatter(file, dataStr) {
|
|||
const stat = fs.statSync(file.filePath);
|
||||
const date = stat.birthtime; // 创建时间
|
||||
const dateStr = `${date.getFullYear()}-${zero(date.getMonth()+1)}-${zero(date.getDate())}`;
|
||||
const newData = `---\r\ntitle: ${file.name}\r\ndate: ${dateStr}\r\npermalink: ${new MD5().update(file.name).digest('hex').substring(0,16)}\r\n---\r\n` + dataStr;
|
||||
const newData = `---\r\ntitle: ${file.name}\r\ndate: ${dateStr}\r\npermalink: /pages/${new MD5().update(file.name).digest('hex').substring(0,16)}\r\n---\r\n` + dataStr;
|
||||
fs.writeFileSync(file.filePath, newData); // 写入
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue