Skip to content

Commit

Permalink
v3.0.5
Browse files Browse the repository at this point in the history
1. fix bug when display toc div class
2. change the default template
  • Loading branch information
D0n9X1n committed Dec 3, 2019
1 parent e31c536 commit 0d33386
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ hexo.extend.filter.register('after_post_render', (data) => {
data.excerpt = data.more = config.abstract;

return data;
})
}, 1000);

hexo.extend.generator.register('hexo-blog-encrypt', () => [
{
Expand Down
2 changes: 1 addition & 1 deletion lib/blog-encrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@

var tocDivs = document.getElementsByClassName('toc-div-class');
if (tocDivs && tocDivs.length > 0) {
for (var idx in tocDivs) {
for (var idx = 0; idx < tocDivs.length; idx++) {
tocDivs[idx].style.display = 'inline';
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/template.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div id="hexo-blog-encrypt" data-wpm="{{hbeWrongPassMessage}}" data-whm="{{hbeWrongHashMessage}}">
<div class="hbe-input-container">
<input type="password" id="hbePass" placeholder="{{hbeMessage}}" />
<input type="password" id="hbePass" placeholder="" />
<label for="hbePass">{{hbeMessage}}</label>
<div class="bottom-line"></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint --ext .js ./"
},
"version": "3.0.4",
"version": "3.0.5",
"devDependencies": {
"eslint": "^6.2.2"
}
Expand Down

0 comments on commit 0d33386

Please sign in to comment.