From 89d344074a68f30d8f8abdcf20ae3496aea7c89c Mon Sep 17 00:00:00 2001 From: Khusika Dhamar Gusti Date: Thu, 8 Oct 2020 00:50:40 +0700 Subject: [PATCH] feat(home): allow HTML format in subtitle Signed-off-by: Khusika Dhamar Gusti --- exampleSite/config.toml | 6 +++--- layouts/partials/home/profile.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d87632c..c441853 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -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 diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html index b37e152..809568c 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 -}}