mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-15 17:49:40 +08:00
移除社交媒体配置项
This commit is contained in:
parent
dde89620bf
commit
5275323f68
@ -88,16 +88,6 @@ spec:
|
||||
value: false
|
||||
- label: 隐藏
|
||||
value: true
|
||||
- $formkit: radio
|
||||
name: social_media
|
||||
label: 社交媒体
|
||||
value: true
|
||||
help: 是否在HTML下添加社交媒体的META参数,隐藏时可由相关插件添加。
|
||||
options:
|
||||
- label: 显示
|
||||
value: true
|
||||
- label: 隐藏
|
||||
value: false
|
||||
- group: basic_style
|
||||
label: '基础样式'
|
||||
formSchema:
|
||||
|
@ -10,7 +10,6 @@ th:with="description=${isPost ? post != null ? post.status.excerpt : singlePage
|
||||
<meta name="description" th:content="${description}">
|
||||
<meta name="author" th:content="${site.title}">
|
||||
<meta name="site" th:content="${site.url}">
|
||||
<th:block th:if="${theme.config.basic_info.social_media}">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" th:content="${site.title}">
|
||||
<meta property="og:url" th:content="${#strings.isEmpty(canonical) ? '' : #strings.startsWith(canonical,'http') ? canonical : (#strings.endsWith(site.url,'/') ? #strings.substringBefore(site.url, '/') : site.url + canonical)}">
|
||||
@ -22,7 +21,6 @@ th:with="description=${isPost ? post != null ? post.status.excerpt : singlePage
|
||||
<meta name="twitter:title" th:content="${title}">
|
||||
<meta name="twitter:description" th:content="${description}">
|
||||
<meta name="twitter:image" th:content="${#strings.isEmpty(site.favicon) ? '' : #strings.startsWith(site.favicon,'http') ? site.favicon : (#strings.endsWith(site.url,'/') ? #strings.substringBefore(site.url, '/') : site.url + site.favicon)}">
|
||||
</th:block>
|
||||
|
||||
<link rel="canonical" th:href="${#strings.isEmpty(canonical) ? '' : #strings.startsWith(canonical,'http') ? canonical : (#strings.endsWith(canonical,'/') ? #strings.substringBefore(site.url, '/') : site.url + canonical)}"/>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user