You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hexo-theme-yorha/scripts/fancybox.js

5 lines
204 B

1 year ago
// hexo.extend.filter.register('after_post_render', data => {
1 year ago
// data.content = data.content.replaceAll(/<img(.*?)src="(.*?)">/ig, `<a data-fancybox ><img data-fancybox $1>`)
1 year ago
// return data
// })