summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2021-05-01 22:13:54 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2021-05-01 22:13:54 +0530
commit0e3f44ff17f4e82dfec4157ce5c9c672a1282e9e (patch)
tree86379fe8f0f1a1e9a682144467785d2d76eb21b3 /layouts
parent167ca42ce39e113e0e61e5c0ca6534123878abd0 (diff)
Use `title` instead of `humanize`
- https://gohugo.io/functions/title/
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/header.html6
-rw-r--r--layouts/partials/index_profile.html4
-rw-r--r--layouts/partials/social_icons.html2
-rw-r--r--layouts/partials/templates/schema_json.html4
-rw-r--r--layouts/partials/translation_list.html2
5 files changed, 9 insertions, 9 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 173763b..78ed310 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -123,12 +123,12 @@
{{- range . -}}
{{- if ne $lang .Lang }}
<li>
- <a href="{{- .Permalink -}}" title="{{ .Language.Params.languageAltTitle | default (.Language.LanguageName | emojify) | default (.Lang | humanize) }}"
- aria-label="{{ .Language.LanguageName | default (.Lang | humanize) }}">
+ <a href="{{- .Permalink -}}" title="{{ .Language.Params.languageAltTitle | default (.Language.LanguageName | emojify) | default (.Lang | title) }}"
+ aria-label="{{ .Language.LanguageName | default (.Lang | title) }}">
{{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
{{- .Language.LanguageName | emojify -}}
{{- else }}
- {{- .Lang | humanize -}}
+ {{- .Lang | title -}}
{{- end -}}
</a>
</li>
diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html
index 478f372..b7753f9 100644
--- a/layouts/partials/index_profile.html
+++ b/layouts/partials/index_profile.html
@@ -12,8 +12,8 @@
{{- with .buttons }}
<div class="buttons">
{{- range . }}
- <a class="button" href="{{ trim .url " " }}" rel="noopener" title="{{ .name | humanize }}">
- <span class="button-inner">{{ .name }}</span>
+ <a class="button" href="{{ trim .url " " }}" rel="noopener" title="{{ .name | title }}">
+ <span class="button-inner">{{ .name | title }}</span>
</a>
{{- end }}
</div>
diff --git a/layouts/partials/social_icons.html b/layouts/partials/social_icons.html
index 046b343..7c16e30 100644
--- a/layouts/partials/social_icons.html
+++ b/layouts/partials/social_icons.html
@@ -1,6 +1,6 @@
<div class="social-icons">
{{- range . }}
- <a href="{{ trim .url " " }}" target="_blank" rel="noopener noreferrer me" title="{{ .name | humanize }}">
+ <a href="{{ trim .url " " }}" target="_blank" rel="noopener noreferrer me" title="{{ .name | title }}">
{{ partial "svg.html" . }}
</a>
{{- end }}
diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html
index ff4a5aa..5cf3857 100644
--- a/layouts/partials/templates/schema_json.html
+++ b/layouts/partials/templates/schema_json.html
@@ -2,7 +2,7 @@
<script type="application/ld+json">
{
"@context": "https://schema.org",
- "@type": "{{- ( .Site.Params.schema.publisherType | default "Organization") | humanize -}}",
+ "@type": "{{- ( .Site.Params.schema.publisherType | default "Organization") | title -}}",
"name": {{ .Site.Title }},
"url": {{ .Site.BaseURL }},
"description": {{ .Site.Params.description | plainify | truncate 180 | safeHTML }},
@@ -105,7 +105,7 @@
"@id": {{ .Permalink | safeHTML }}
},
"publisher": {
- "@type": "{{- ( .Site.Params.schema.publisherType | default "Organization") | humanize -}}",
+ "@type": "{{- ( .Site.Params.schema.publisherType | default "Organization") | title -}}",
"name": {{ .Site.Title }},
"logo": {
"@type": "ImageObject",
diff --git a/layouts/partials/translation_list.html b/layouts/partials/translation_list.html
index 761035e..e1c34e1 100644
--- a/layouts/partials/translation_list.html
+++ b/layouts/partials/translation_list.html
@@ -10,7 +10,7 @@
{{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }}
{{- .Language.LanguageName | emojify -}}
{{- else }}
- {{- .Lang | humanize -}}
+ {{- .Lang | title -}}
{{- end -}}
</a>
</li>