Skip to content

Commit 4df61b5

Browse files
committed
feat(profile): Make title configurable with site title fallback
Signed-off-by: Khusika Dhamar Gusti <khusikadhamar@gmail.com>
1 parent 4150ac5 commit 4df61b5

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

layouts/_partials/about/profile.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
</div>
2121
{{- end -}}
2222

23-
<h2>
24-
{{- $profile.title -}}
25-
</h2>
23+
<h2>
24+
{{- .Site.Params.home.profile.title | default .Site.Title | safeHTML -}}
25+
</h2>
2626

2727
{{- with $profile.subtitle -}}
2828
<div class="subtitle">

layouts/_partials/home/profile.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@
2121
</div>
2222
{{- end -}}
2323

24-
{{- with $profile.title -}}
25-
<h1 class="home-title">
26-
{{- . | safeHTML -}}
27-
</h1>
28-
{{- end -}}
24+
<h1 class="home-title">
25+
{{- .Site.Params.home.profile.title | default .Site.Title | safeHTML -}}
26+
</h1>
2927

3028
{{- with $profile.subtitle -}}
3129
<div class="home-subtitle">

0 commit comments

Comments
 (0)