Skip to content

Commit

Permalink
Allow decoding post link
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Nov 27, 2019
1 parent 121760b commit 33723b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/helpers/next-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ hexo.extend.helper.register('next_url', function(path, text, options = {}) {
}

for (let key in options) {

/**
* If option have `class` attribute, add it to
* 'exturl' class if `exturl` option enabled.
Expand Down Expand Up @@ -56,5 +57,5 @@ hexo.extend.helper.register('next_url', function(path, text, options = {}) {
}
}

return htmlTag(tag, attrs, text, false);
return htmlTag(tag, attrs, decodeURI(text), false);
});

0 comments on commit 33723b1

Please sign in to comment.