Closed ppwwyyxx closed 1 year ago
I'm so sorry, it's not a problem with this package. You may need to fix it in the theme.
In case anyone is interested, I end up solving it with:
hexo.extend.filter.register('after_post_render', data => {
const $ = cheerio.load(data.excerpt);
const anchor = $('a.markdown-anchor');
if (anchor.length > 0) {
log.info('Removing excerpt anchor from ' + data.title + ' ...');
anchor.remove();
}
data.excerpt = $.html();
return data;
});
Currently, anchors are generated even on index pages, e.g.:
I think this is not the correct behavior. Contents in index pages, or pages such as
/tag/TAG
are meant to change over time. Permalink on these pages will not be permantant at all.