From 0e3f44ff17f4e82dfec4157ce5c9c672a1282e9e Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 1 May 2021 22:13:54 +0530 Subject: [PATCH] Use `title` instead of `humanize` - https://gohugo.io/functions/title/ --- layouts/partials/header.html | 6 +++--- layouts/partials/index_profile.html | 4 ++-- layouts/partials/social_icons.html | 2 +- layouts/partials/templates/schema_json.html | 4 ++-- layouts/partials/translation_list.html | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 173763b4..78ed3107 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -123,12 +123,12 @@ {{- range . -}} {{- if ne $lang .Lang }}
  • - + {{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }} {{- .Language.LanguageName | emojify -}} {{- else }} - {{- .Lang | humanize -}} + {{- .Lang | title -}} {{- end -}}
  • diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index 478f372c..b7753f9f 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -12,8 +12,8 @@ {{- with .buttons }}
    {{- range . }} - - {{ .name }} + + {{ .name | title }} {{- end }}
    diff --git a/layouts/partials/social_icons.html b/layouts/partials/social_icons.html index 046b343b..7c16e30e 100644 --- a/layouts/partials/social_icons.html +++ b/layouts/partials/social_icons.html @@ -1,6 +1,6 @@
    {{- range . }} - + {{ partial "svg.html" . }} {{- end }} diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html index ff4a5aa3..5cf3857e 100644 --- a/layouts/partials/templates/schema_json.html +++ b/layouts/partials/templates/schema_json.html @@ -2,7 +2,7 @@