mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-28 07:50:34 +00:00
fix: fix section name formatting in metadata (#201)
This commit is contained in:
parent
5d7c543fd9
commit
9f49819aa8
@ -53,7 +53,7 @@
|
||||
|
||||
{{ if .IsPage -}}
|
||||
{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
|
||||
<meta property="article:section" content="{{ .Section }}" />
|
||||
<meta property="article:section" content="{{ .Section | humanize | title }}" />
|
||||
{{- with .PublishDate }}
|
||||
<meta
|
||||
property="article:published_time"
|
||||
|
@ -28,7 +28,7 @@
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "BlogPosting",
|
||||
"articleSection": "{{ .Section }}",
|
||||
"articleSection": "{{ .Section | humanize | title }}",
|
||||
"name": "{{ (partial "utils/title" .) | safeJS }}",
|
||||
"headline": "{{ (partial "utils/title" .) | safeJS }}",
|
||||
{{- with .Params.lead }}
|
||||
|
Loading…
Reference in New Issue
Block a user