From 55f89b10247fdb1e2cd658aa7d46064781d87aec Mon Sep 17 00:00:00 2001 From: rozbo <75200306@qq.com> Date: Fri, 24 Jun 2016 19:20:23 +0800 Subject: [PATCH 1/4] readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4dc73b8..4a9f720 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ ## info -wait to writ.... \ No newline at end of file +see [this](https://post.zz173.com/hexo-abbrlink) \ No newline at end of file From 15e9c2e51f517e79406b65e67c2f73a34881675c Mon Sep 17 00:00:00 2001 From: rozbo <75200306@qq.com> Date: Fri, 24 Jun 2016 19:26:30 +0800 Subject: [PATCH 2/4] update --- README.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4a9f720..a462ba4 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ ## info -see [this](https://post.zz173.com/hexo-abbrlink) \ No newline at end of file +see [this](https://post.zz173.com/detail_hexo-abbrlink.html) \ No newline at end of file diff --git a/package.json b/package.json index 4f1658f..6bf6475 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-abbrlink", - "version": "1.0.0", + "version": "1.0.1", "description": "create one and only link for every post for hexo", "main": "index.js", "scripts": { From d57a8037e334ebea218ed5069efbc8dac1d03a33 Mon Sep 17 00:00:00 2001 From: rozbo <75200306@qq.com> Date: Thu, 30 Jun 2016 16:49:45 +0800 Subject: [PATCH 3/4] add a line --- index.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index c9d1391..8693a3b 100644 --- a/index.js +++ b/index.js @@ -23,7 +23,8 @@ hexo.extend.filter.register('before_post_render', function (data) { //添加我们生成的链接 tmpPost.abbrlink=abbrlink; //生成处理后的文章 - var postStr=front.stringify(tmpPost); + let postStr=front.stringify(tmpPost); + postStr='---\n'+postStr; fs.writeFileSync(data.full_source,postStr,'utf-8'); log.i("已为%s生成连接%s",data.title,abbrlink); } diff --git a/package.json b/package.json index 6bf6475..1b1b074 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-abbrlink", - "version": "1.0.1", + "version": "1.0.2", "description": "create one and only link for every post for hexo", "main": "index.js", "scripts": { From b28906378aa3475b88887e82b07f104745fb86cc Mon Sep 17 00:00:00 2001 From: rozbo <75200306@qq.com> Date: Thu, 7 Jul 2016 14:13:05 +0800 Subject: [PATCH 4/4] fix a bug in diffrent node.js version --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1b1b074..ab1d32b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-abbrlink", - "version": "1.0.2", + "version": "1.0.3", "description": "create one and only link for every post for hexo", "main": "index.js", "scripts": { @@ -21,5 +21,9 @@ "bugs": { "url": "https://github.com/Rozbo/hexo-abbrlink/issues" }, - "homepage": "https://github.com/Rozbo/hexo-abbrlink#readme" + "homepage": "https://github.com/Rozbo/hexo-abbrlink#readme", + "dependencies": { + "hexo-front-matter": "^0.2.3", + "hexo-fs": "^0.1.6" + } }