Skip to content

Commit

Permalink
fix: tag page didn't use url_for
Browse files Browse the repository at this point in the history
  • Loading branch information
Lhcfl committed Oct 3, 2023
1 parent 52091cb commit a600bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/helpers/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = function(hexo) {
}
htmls.push(`<div class="${classNames.tag_group}">`);
tag_dict[id].sort((tag1, tag2) => tag1.name < tag2.name ? -1 : 1).forEach(tag => {
htmls.push(`<a class="${classNames.a}" href="/${tag.path}" rel="tag">${classNames.before}${htmlSafe(tag.name)}<span class="${classNames.count}">${tag.length}</span></a>`);
htmls.push(`<a class="${classNames.a}" href="${this.url_for(tag.path)}" rel="tag">${classNames.before}${htmlSafe(tag.name)}<span class="${classNames.count}">${tag.length}</span></a>`);
});
htmls.push(`</div>`)
});
Expand Down

0 comments on commit a600bae

Please sign in to comment.