summaryrefslogtreecommitdiff
path: root/layouts/partials/templates/schema_json.html
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/partials/templates/schema_json.html
parent167ca42ce39e113e0e61e5c0ca6534123878abd0 (diff)
Use `title` instead of `humanize`
- https://gohugo.io/functions/title/
Diffstat (limited to 'layouts/partials/templates/schema_json.html')
-rw-r--r--layouts/partials/templates/schema_json.html4
1 files changed, 2 insertions, 2 deletions
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",