chore: 简化结构化数据配置,移除不必要的嵌套

This commit is contained in:
DeepChirp
2024-11-11 18:42:46 +08:00
parent e5a52d5621
commit 648ca6eb4f
3 changed files with 3 additions and 6 deletions

View File

@@ -1025,8 +1025,7 @@ Open_Graph_meta:
# Structured Data
# https://developers.google.com/search/docs/guides/intro-structured-data
structured_data:
enable: true
structured_data: true
# Add the vendor prefixes to ensure compatibility
css_prefix: true

View File

@@ -1,4 +1,4 @@
if theme.structured_data.enable && page.layout === 'post'
if theme.structured_data && page.layout === 'post'
-
// use json-ld to add structured data

View File

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