mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-21 22:36:16 +01:00
Merge pull request #545 from khusika/home-feat
feat(home): allow HTML format in subtitle
This commit is contained in:
commit
0fe4c38d6b
5 changed files with 7 additions and 7 deletions
|
@ -179,8 +179,8 @@
|
|||
# title shown in home page (HTML format is supported)
|
||||
# 主页显示的网站标题 (支持 HTML 格式)
|
||||
title = ""
|
||||
# subtitle shown in home page
|
||||
# 主页显示的网站副标题
|
||||
# subtitle shown in home page (HTML format is supported)
|
||||
# 主页显示的网站副标题 (允许 HTML 格式)
|
||||
subtitle = "This is my cool site"
|
||||
# whether to use typeit animation for subtitle
|
||||
# 是否为副标题显示打字机动画
|
||||
|
|
|
@ -261,8 +261,8 @@ enableEmoji = true
|
|||
# title shown in home page (HTML format is supported)
|
||||
# 主页显示的网站标题 (支持 HTML 格式)
|
||||
title = ""
|
||||
# subtitle shown in home page
|
||||
# 主页显示的网站副标题
|
||||
# subtitle shown in home page (HTML format is supported)
|
||||
# 主页显示的网站副标题 (允许 HTML 格式)
|
||||
subtitle = "A Clean, Elegant but Advanced Hugo Theme"
|
||||
# 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"
|
||||
# {{< version 0.2.7 changed >}} 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 = "This is My New Hugo Site"
|
||||
# whether to use typeit animation for subtitle
|
||||
typeit = true
|
||||
|
|
|
@ -324,7 +324,7 @@ hugo
|
|||
avatarURL = "/images/avatar.png"
|
||||
# {{< version 0.2.7 changed >}} 主页显示的网站标题 (支持 HTML 格式)
|
||||
title = ""
|
||||
# 主页显示的网站副标题
|
||||
# 主页显示的网站副标题 (允许 HTML 格式)
|
||||
subtitle = "这是我的全新 Hugo 网站"
|
||||
# 是否为副标题显示打字机动画
|
||||
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 -}}
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
|
Loading…
Reference in a new issue