Skip to content

Commit

Permalink
✨ Feat: add HTML support for profile subtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Sep 10, 2024
1 parent de0dae9 commit dafc266
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ enableEmoji = true
avatarMenu = ""
# 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 = ""
# whether to use typeit animation for subtitle
typeit = true
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/home/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h1 class="home-title">
{{- $.Store.Set "hasTyped" true -}}
<span class="typeit"><template>{{ . }}</template></span>
{{- else -}}
{{- . -}}
{{- . | safeHTML -}}
{{- end -}}
</p>
{{- end -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/init/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- .Scratch.Set "version" "v0.3.12-788f8b7f" -}}
{{- .Scratch.Set "version" "v0.3.12-de0dae97" -}}
{{- .Scratch.Set "this" dict -}}

{{- partial "init/detection-env.html" . -}}
Expand Down

0 comments on commit dafc266

Please sign in to comment.