Merge pull request #545 from khusika/home-feat
feat(home): allow HTML format in subtitle
This commit is contained in:
@@ -179,8 +179,8 @@
|
|||||||
# title shown in home page (HTML format is supported)
|
# title shown in home page (HTML format is supported)
|
||||||
# 主页显示的网站标题 (支持 HTML 格式)
|
# 主页显示的网站标题 (支持 HTML 格式)
|
||||||
title = ""
|
title = ""
|
||||||
# subtitle shown in home page
|
# subtitle shown in home page (HTML format is supported)
|
||||||
# 主页显示的网站副标题
|
# 主页显示的网站副标题 (允许 HTML 格式)
|
||||||
subtitle = "This is my cool site"
|
subtitle = "This is my cool site"
|
||||||
# whether to use typeit animation for subtitle
|
# whether to use typeit animation for subtitle
|
||||||
# 是否为副标题显示打字机动画
|
# 是否为副标题显示打字机动画
|
||||||
|
|||||||
@@ -261,8 +261,8 @@ enableEmoji = true
|
|||||||
# title shown in home page (HTML format is supported)
|
# title shown in home page (HTML format is supported)
|
||||||
# 主页显示的网站标题 (支持 HTML 格式)
|
# 主页显示的网站标题 (支持 HTML 格式)
|
||||||
title = ""
|
title = ""
|
||||||
# subtitle shown in home page
|
# subtitle shown in home page (HTML format is supported)
|
||||||
# 主页显示的网站副标题
|
# 主页显示的网站副标题 (允许 HTML 格式)
|
||||||
subtitle = "A Clean, Elegant but Advanced Hugo Theme"
|
subtitle = "A Clean, Elegant but Advanced Hugo Theme"
|
||||||
# whether to use typeit animation for subtitle
|
# whether to use typeit animation for subtitle
|
||||||
# 是否为副标题显示打字机动画
|
# 是否为副标题显示打字机动画
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ Please open the code block below to view the complete sample configuration :(far
|
|||||||
avatarURL = "/images/avatar.png"
|
avatarURL = "/images/avatar.png"
|
||||||
# {{< version 0.2.7 changed >}} title shown in home page (HTML format is supported)
|
# {{< version 0.2.7 changed >}} title shown in home page (HTML format is supported)
|
||||||
title = ""
|
title = ""
|
||||||
# subtitle shown in home page
|
# subtitle shown in home page (HTML format is supported)
|
||||||
subtitle = "This is My New Hugo Site"
|
subtitle = "This is My New Hugo Site"
|
||||||
# whether to use typeit animation for subtitle
|
# whether to use typeit animation for subtitle
|
||||||
typeit = true
|
typeit = true
|
||||||
|
|||||||
@@ -324,7 +324,7 @@ hugo
|
|||||||
avatarURL = "/images/avatar.png"
|
avatarURL = "/images/avatar.png"
|
||||||
# {{< version 0.2.7 changed >}} 主页显示的网站标题 (支持 HTML 格式)
|
# {{< version 0.2.7 changed >}} 主页显示的网站标题 (支持 HTML 格式)
|
||||||
title = ""
|
title = ""
|
||||||
# 主页显示的网站副标题
|
# 主页显示的网站副标题 (允许 HTML 格式)
|
||||||
subtitle = "这是我的全新 Hugo 网站"
|
subtitle = "这是我的全新 Hugo 网站"
|
||||||
# 是否为副标题显示打字机动画
|
# 是否为副标题显示打字机动画
|
||||||
typeit = true
|
typeit = true
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
<div id="{{ $id }}" class="typeit"></div>
|
<div id="{{ $id }}" class="typeit"></div>
|
||||||
{{- dict $id (slice $id) | dict "typeitMap" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}}
|
{{- dict $id (slice $id) | dict "typeitMap" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- . -}}
|
{{- . | safeHTML -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user