Skip to content

Commit

Permalink
dirty disabling of og images
Browse files Browse the repository at this point in the history
  • Loading branch information
aviskase committed Feb 24, 2024
1 parent cb453c5 commit dc29e1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

{{ if ne .Kind "404" }}
{{ partial "opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
{{/* {{ template "_internal/twitter_cards.html" . }} */}}
{{ end }}
{{ hugo.Generator }}

Expand Down
3 changes: 2 additions & 1 deletion layouts/partials/opengraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
<meta property="og:image:width" content="1200" />
{{ else -}}
{{- with $.Site.Params.images -}}
{{- if not $isArticle }}
<meta property="og:image" content="{{ index . 0 | absURL }}"/>
<meta property="og:image:height" content="630" />
<meta property="og:image:width" content="1200" />
{{ end }}{{ end }}{{ end }}
{{ end }}{{ end }}{{ end }}{{ end }}

{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
{{- if $isArticle }}
Expand Down

0 comments on commit dc29e1d

Please sign in to comment.