Skip to content

Commit

Permalink
Remove dupe headers
Browse files Browse the repository at this point in the history
The spec says they're unnecessary, so it's the validation tool that's fucking garbage
  • Loading branch information
LunarWatcher committed Dec 25, 2024
1 parent 4e1f59d commit 27b74aa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
<meta property="og:type" content="article" />
<!-- Not sure why both these need to be present? -->
<meta property="article:author" content="{{ "/" | absURL }}" />
<meta property="og:article:author" content="{{ "/" | absURL }}" />

{{ $taxonomy := "tags" }}
{{ with (sort (.Param $taxonomy) ) }}
Expand All @@ -59,6 +58,7 @@
{{ end }}
{{ else if isset .Params "ogprofile" }}
<!-- Required for og:author to function properly -->
<!-- index 1 is reserved for future use, but is currently unused -->
{{ $fn := index (.Params.ogprofile) 0 }}
{{ $g := index (.Params.ogprofile) 2 }}
{{ $un := index (.Params.ogprofile) 3 }}
Expand All @@ -67,9 +67,6 @@
<meta property="profile:first_name" content="{{ $fn }}" />
<meta property="profile:gender" content="{{ $g }}" />
<meta property="profile:username" content="{{ $un }}" />
<meta property="og:profile:first_name" content="{{ $fn }}" />
<meta property="og:profile:gender" content="{{ $g }}" />
<meta property="og:profile:username" content="{{ $un }}" />
{{ else }}
<meta property="og:type" content="website" />

Expand Down

0 comments on commit 27b74aa

Please sign in to comment.