mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-24 14:00:42 +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 -}}
|
{{ 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"
|
||||||
|
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user