This commit is contained in:
myw
2024-11-15 14:56:56 +08:00
5 changed files with 43 additions and 1 deletions

View File

@@ -563,6 +563,7 @@ hexo.extend.filter.register('before_generate', () => {
enable: true,
option: null
},
structured_data: true,
css_prefix: true,
inject: {
head: null,

View File

@@ -6,7 +6,7 @@
'use strict'
hexo.extend.filter.register('before_post_render', data => {
const imgTestReg = /\.(png|jpe?g|gif|svg|webp)(\?.*)?$/i
const imgTestReg = /\.(png|jpe?g|gif|svg|webp|avif)(\?.*)?$/i
let { cover: coverVal, top_img: topImg } = data
// Add path to top_img and cover if post_asset_folder is enabled