Skip to content

Commit

Permalink
Only keep Open Graph protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEquus committed Nov 5, 2023
1 parent ad8d46d commit e6af486
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 @@ -25,16 +25,13 @@

{{ else }}
<meta name="description" content="{{ .Params.description }}">
<!-- Fancy card things -->
<!-- Open Graph things -->
<meta property="og:title" content="{{ .Title }}">
<meta property="og:description" content="{{ .Params.description }}">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="{{ .Title }}">
{{if .Params.cover }}
{{ $mediaPath := path.Join .Permalink (.Page.Param "mediaPath") }}
{{ $cover := path.Join $mediaPath .Params.cover }}
<meta property="og:image" content="{{ $cover }}">
<meta name="twitter:image" content="{{ $cover }}">
{{ end }}
<meta property="og:url" content="{{ .Permalink }}">
<title>{{ .Title | emojify }}</title>
Expand Down

0 comments on commit e6af486

Please sign in to comment.