Skip to content

Commit

Permalink
fix: use author from site rather than post and don't humanize author …
Browse files Browse the repository at this point in the history
…name (#189)

using humanize on the name uses sentence case rather than title case,
thus using lowercase for all words except the first. This way, the
author can choose how they want their name to look.
  • Loading branch information
mattcen authored Jul 17, 2024
1 parent 6b33ee0 commit 1f44e9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions layouts/partials/meta/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
<meta property="article:published_time" content={{ $ISO_date | safeHTML }} />
<meta property="og:url" content="{{ .Permalink }}" />

{{ with.Params.author }}
<meta property="og:article:author" content="{{humanize . }}" />
<meta property="article:author" content="{{humanize . }}" />
<meta name="author" content="{{humanize . }}" />
{{ with.Site.Params.author }}
<meta property="og:article:author" content="{{ .name }}" />
<meta property="article:author" content="{{ .name }}" />
<meta name="author" content="{{ .name }}" />
{{ end }}

{{ with.Params.category }}
Expand Down

0 comments on commit 1f44e9f

Please sign in to comment.