Skip to content

Commit

Permalink
theme/metadata: fix image link
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Dec 24, 2024
1 parent 1dac5bc commit 132fa2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion themes/smol/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
<meta property="og:image" content="{{ .Site.BaseURL }}{{ path.Join .File.Dir .Params.image }}" />
{{- end -}}
{{ else if .Site.Params.logo }}
<meta property="og:image" content="{{ .Site.BaseURL }}{{ .Site.Params.logo }}">
{{ $logo := resources.Get .Site.Params.logo }}
{{ $logowebplarge := $logo.Resize "300x webp" }}
<meta property="og:image" content="{{ $logowebplarge.Permalink }}">
{{ end }}
{{ partial "opengraph.html" . }}
{{ partial "twitter_cards.html" . }}
Expand Down
6 changes: 0 additions & 6 deletions themes/smol/layouts/partials/opengraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@
<meta property="og:type" content="website">
{{- end }}

{{- with partial "_funcs/get-page-images" . }}
{{- range . | first 6 }}
<meta property="og:image" content="{{ .Permalink }}">
{{- end }}
{{- end }}

{{- with .Params.audio }}
{{- range . | first 6 }}
<meta property="og:audio" content="{{ . | absURL }}">
Expand Down

0 comments on commit 132fa2a

Please sign in to comment.