Skip to content

Commit

Permalink
fix: fix section name formatting in metadata (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Feb 7, 2022
1 parent 5d7c543 commit 9f49819
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/microformats/opengraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/microformats/schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 9f49819

Please sign in to comment.