fix: fix section name formatting in metadata (#201)

This commit is contained in:
Robert Kaussow 2022-02-07 13:52:07 +01:00 committed by GitHub
parent 5d7c543fd9
commit 9f49819aa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@
{{ if .IsPage -}} {{ if .IsPage -}}
{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
<meta property="article:section" content="{{ .Section }}" /> <meta property="article:section" content="{{ .Section | humanize | title }}" />
{{- with .PublishDate }} {{- with .PublishDate }}
<meta <meta
property="article:published_time" property="article:published_time"

View File

@ -28,7 +28,7 @@
{ {
"@context": "http://schema.org", "@context": "http://schema.org",
"@type": "BlogPosting", "@type": "BlogPosting",
"articleSection": "{{ .Section }}", "articleSection": "{{ .Section | humanize | title }}",
"name": "{{ (partial "utils/title" .) | safeJS }}", "name": "{{ (partial "utils/title" .) | safeJS }}",
"headline": "{{ (partial "utils/title" .) | safeJS }}", "headline": "{{ (partial "utils/title" .) | safeJS }}",
{{- with .Params.lead }} {{- with .Params.lead }}