diff --git a/settings.yaml b/settings.yaml index 6b5ce64a..9eeca749 100644 --- a/settings.yaml +++ b/settings.yaml @@ -2800,6 +2800,16 @@ spec: validation: required value: 'https://npm.onmicrosoft.cn/hao-theme-static@1.3.7/templates/assets' help: '默认为npmJs的onmicrosoft加速地址,如果你有自己的cdn地址(请确保链接下assets文件夹下主题静态资源文件),可以填写,否则请勿修改! ' + - $formkit: group + name: opengraph + label: Open Graph + value: + image: + children: + - $formkit: attachment + name: image + label: 默认图片 + help: 如果页面没有设置图片,那么将会使用此图片作为 Open Graph 图片 - $formkit: group name: vanillaLazyload label: 懒加载 diff --git a/templates/about.html b/templates/about.html index 48a4ab0b..6af69693 100644 --- a/templates/about.html +++ b/templates/about.html @@ -1,7 +1,13 @@ - + th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'about',title = ${'关于' + ' | ' + site.title}, head = ~{::head})}"> + + +
diff --git a/templates/album.html b/templates/album.html index 2e7436dd..45972497 100644 --- a/templates/album.html +++ b/templates/album.html @@ -1,7 +1,13 @@ - + th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'page',title = ${singlePage.spec.title + ' | ' + site.title}, head = ~{::head})}"> + + +
diff --git a/templates/archives.html b/templates/archives.html index 00f94424..a2a3e8cb 100644 --- a/templates/archives.html +++ b/templates/archives.html @@ -1,12 +1,18 @@ - + th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'archive',title = ${'文章归档' + ' | ' + site.title}, head = ~{::head})}"> + + +
diff --git a/templates/bangumis.html b/templates/bangumis.html index 641fd935..98d9c0a2 100644 --- a/templates/bangumis.html +++ b/templates/bangumis.html @@ -1,7 +1,13 @@ - + th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'bangumis',title = ${'追番' + ' | ' + site.title}, head = ~{::head})}"> + + +
diff --git a/templates/categories.html b/templates/categories.html index 4e3f4146..169a272d 100644 --- a/templates/categories.html +++ b/templates/categories.html @@ -1,7 +1,13 @@ - + th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'category',title = ${'分类' + ' | ' + site.title}, head = ~{::head})}"> + + +
diff --git a/templates/category.html b/templates/category.html index 1d80cbdb..2afaba10 100644 --- a/templates/category.html +++ b/templates/category.html @@ -1,7 +1,13 @@ - + th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'category',title = ${'分类' + ': ' + category.spec.displayName + ' | ' + site.title}, head = ~{::head})}" > + + +
diff --git a/templates/comments.html b/templates/comments.html index b64295e4..2408c003 100644 --- a/templates/comments.html +++ b/templates/comments.html @@ -1,7 +1,13 @@ - + th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'comments',title = ${singlePage.spec.title + ' | ' + site.title}, head = ~{::head})}"> + + +
diff --git a/templates/equipment.html b/templates/equipment.html index 56367221..11348790 100644 --- a/templates/equipment.html +++ b/templates/equipment.html @@ -1,7 +1,13 @@ - + th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'page',title = ${singlePage.spec.title + ' | ' + site.title}, head = ~{::head})}"> + + +
diff --git a/templates/fcircle.html b/templates/fcircle.html index 8ee78d51..fbd147e0 100644 --- a/templates/fcircle.html +++ b/templates/fcircle.html @@ -1,7 +1,13 @@ - + th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'fcircle',title = ${singlePage.spec.title + ' | ' + site.title}, head = ~{::head} )}"> + + +
diff --git a/templates/index.html b/templates/index.html index 6d0af0be..451160e1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,7 +1,13 @@ - + th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'index', title = null, head = ~{::head})}"> + + +
diff --git a/templates/links.html b/templates/links.html index e5abe507..71d770aa 100644 --- a/templates/links.html +++ b/templates/links.html @@ -1,6 +1,13 @@ + th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'links',title = ${'友链' + ' | ' + site.title}, head = ~{::head})}"> + + +
diff --git a/templates/modules/common/open-graph.html b/templates/modules/common/open-graph.html new file mode 100644 index 00000000..c19189ee --- /dev/null +++ b/templates/modules/common/open-graph.html @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/templates/modules/layouts/layout.html b/templates/modules/layouts/layout.html index 23da3d7f..ad9840a1 100644 --- a/templates/modules/layouts/layout.html +++ b/templates/modules/layouts/layout.html @@ -1,5 +1,5 @@ - + + + + @@ -133,9 +137,8 @@