Closed nondevops closed 4 years ago
Do you use the latest version? Can you provide the tags part in your blog?
Seems that your tags part is not an array.
Hexo can parse the header like below, but this plugin only supports array so far.
---
title: Test.md
date: 2019-11-03 13:57:49
tags: FFF
---
Change to:
---
title: Test.md
date: 2019-11-03 13:57:49
tags:
- FFF
---
Can you show the tags part in your blog?
Seems that your tags part is not an array.
Hexo can parse the header like below, but this plugin only supports array so far.
--- title: Test.md date: 2019-11-03 13:57:49 tags: FFF ---
Change to:
--- title: Test.md date: 2019-11-03 13:57:49 tags: - FFF ---
Will fix in next version.
@MikeCoder This is what I set up before installing this plug-in,And I'm having a problem installing this plug-in, not deploying and publishing it
Weird, I can't reproduce this on my computer, it shouldn't run the plugin when installing.
Also, you can install the plugin manually.
node_modules
folder, and run git clone https://github.com/MikeCoder/hexo-blog-encrypt.git
"hexo-blog-encrypt": "^3.0.3",
to package.json
Then, add console.log
to node_modules/hexo-blog-encrypt/index.js
line 39, like:
if (data.tags) {
// add log here to find out which blog is wrong.
console.log(data);
console.log(data.tags);
data.tags.forEach((cTag, index) => {
if(tagEncryptName.includes(cTag.name)){
password = password || tagEncryptPass[index];
}
});
}
It may help.
Weird, I can't reproduce this on my computer, it shouldn't run the plugin when installing.
Also, you can install the plugin manually.
- go to
node_modules
folder, and rungit clone https://github.com/MikeCoder/hexo-blog-encrypt.git
- add
"hexo-blog-encrypt": "^3.0.3",
topackage.json
Then, add
console.log
tonode_modules/hexo-blog-encrypt/index.js
line 39, like:if (data.tags) { // add log here to find out which blog is wrong. console.log(data); console.log(data.tags); data.tags.forEach((cTag, index) => { if(tagEncryptName.includes(cTag.name)){ password = password || tagEncryptPass[index]; } }); }
It may help.
I think you should test this problem,ths @MikeCoder
For bugs that occur in a specific scenario, debug requires corresponding scenario information. As a developer, you should also be clear that if I can't reproduce it then I can't solve it.
BTW, this is not commercial software.
Issue
Expected Behavior
hexo 3.9 next 7
Actual Behavior
Steps to Reproduce the Problem
Specifications
(The version of the project, operating system, hardware etc.)