More attempts to fix baseurl in head.html
This commit is contained in:
parent
970e41e4e4
commit
dab7b92710
@ -16,7 +16,7 @@
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:type" content="website">
|
||||
{{ if .Params.Thumbnail }}
|
||||
<meta property="og:image" content="https://temper.tv{{ .Params.Thumbnail }}">
|
||||
<meta property="og:image" content="{{ .Site.BaseURL }}{{ .Params.Thumbnail }}">
|
||||
{{ else }}
|
||||
{{- /* Hard coding this because baseURL is super delicate */ -}}
|
||||
<meta property="og:image" content="https://temper.tv/img/bg.png">
|
||||
@ -28,9 +28,9 @@
|
||||
<meta property="twitter:url" content="{{ .Permalink }}">
|
||||
{{ if .Params.Thumbnail }}
|
||||
{{- /* Hard coding this because baseURL is super delicate */ -}}
|
||||
<meta property="twitter:image" content="https://temper.tv{{ .Params.Thumbnail }}">
|
||||
<meta property="twitter:image" content="{{ .Site.BaseURL }}{{ .Params.Thumbnail }}">
|
||||
{{ else }}
|
||||
<meta property="twitter:image" content="{{ .Site.BaseURL }}img/bg.png">
|
||||
<meta property="twitter:image" content="https://temper.tv/img/bg.png">
|
||||
{{ end }}
|
||||
{{- /* Requirements special to twitter, just don't touch these tbh */ -}}
|
||||
{{- /* https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/summary-card-with-large-image */ -}}
|
||||
|
Loading…
Reference in New Issue
Block a user