mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 02:46:16 +01:00
feat(home): allow HTML format in subtitle
Signed-off-by: Khusika Dhamar Gusti <mail@khusika.com>
This commit is contained in:
parent
f787a4e5ad
commit
89d344074a
2 changed files with 4 additions and 4 deletions
|
@ -144,7 +144,7 @@ enableEmoji = true
|
|||
avatarURL = "/images/avatar.png"
|
||||
# title shown in home page (HTML format is supported)
|
||||
title = ""
|
||||
# subtitle shown in home page
|
||||
# subtitle shown in home page (HTML format is supported)
|
||||
subtitle = "A Clean, Elegant but Advanced Hugo Theme"
|
||||
# whether to use typeit animation for subtitle
|
||||
typeit = true
|
||||
|
@ -344,7 +344,7 @@ enableEmoji = true
|
|||
avatarURL = "/images/avatar.png"
|
||||
# 主页显示的网站标题 (支持 HTML 格式)
|
||||
title = ""
|
||||
# 主页显示的网站副标题
|
||||
# 主页显示的网站副标题 (支持 HTML 格式)
|
||||
subtitle = "一个简洁、优雅且高效的 Hugo 主题"
|
||||
# 是否为副标题显示打字机动画
|
||||
typeit = true
|
||||
|
@ -540,7 +540,7 @@ enableEmoji = true
|
|||
avatarURL = "/images/avatar.png"
|
||||
# title shown in home page (HTML format is supported)
|
||||
title = ""
|
||||
# subtitle shown in home page
|
||||
# subtitle shown in home page (HTML format is supported)
|
||||
subtitle = "Un thème Hugo simple, élégant et efficace"
|
||||
# whether to use typeit animation for subtitle
|
||||
typeit = true
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<div id="{{ $id }}" class="typeit"></div>
|
||||
{{- dict $id (slice $id) | dict "typeitMap" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}}
|
||||
{{- else -}}
|
||||
{{- . -}}
|
||||
{{- . | safeHTML -}}
|
||||
{{- end -}}
|
||||
</h2>
|
||||
{{- end -}}
|
||||
|
|
Loading…
Reference in a new issue