diff --git a/config.toml b/config.toml index 328f6fd..a38391c 100644 --- a/config.toml +++ b/config.toml @@ -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 # 是否为副标题显示打字机动画 diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 34bf3b2..5c79bf9 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -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 # 是否为副标题显示打字机动画 diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index 2fcaf95..6f54184 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -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 diff --git a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md index 4b3e56d..f08e6e2 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -324,7 +324,7 @@ hugo avatarURL = "/images/avatar.png" # {{< version 0.2.7 changed >}} 主页显示的网站标题 (支持 HTML 格式) title = "" - # 主页显示的网站副标题 + # 主页显示的网站副标题 (允许 HTML 格式) subtitle = "这是我的全新 Hugo 网站" # 是否为副标题显示打字机动画 typeit = true diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html index db715db..3f444ab 100644 --- a/layouts/partials/home/profile.html +++ b/layouts/partials/home/profile.html @@ -34,7 +34,7 @@
{{- dict $id (slice $id) | dict "typeitMap" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}} {{- else -}} - {{- . -}} + {{- . | safeHTML -}} {{- end -}} {{- end -}}