More attempts to fix baseurl in head.html

This commit is contained in:
shockrah 2023-10-07 16:16:58 -07:00
parent 970e41e4e4
commit dab7b92710

View File

@ -16,7 +16,7 @@
<meta property="og:url" content="{{ .Permalink }}"> <meta property="og:url" content="{{ .Permalink }}">
<meta property="og:type" content="website"> <meta property="og:type" content="website">
{{ if .Params.Thumbnail }} {{ if .Params.Thumbnail }}
<meta property="og:image" content="https://temper.tv{{ .Params.Thumbnail }}"> <meta property="og:image" content="{{ .Site.BaseURL }}{{ .Params.Thumbnail }}">
{{ else }} {{ else }}
{{- /* Hard coding this because baseURL is super delicate */ -}} {{- /* Hard coding this because baseURL is super delicate */ -}}
<meta property="og:image" content="https://temper.tv/img/bg.png"> <meta property="og:image" content="https://temper.tv/img/bg.png">
@ -28,9 +28,9 @@
<meta property="twitter:url" content="{{ .Permalink }}"> <meta property="twitter:url" content="{{ .Permalink }}">
{{ if .Params.Thumbnail }} {{ if .Params.Thumbnail }}
{{- /* Hard coding this because baseURL is super delicate */ -}} {{- /* 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 }} {{ else }}
<meta property="twitter:image" content="{{ .Site.BaseURL }}img/bg.png"> <meta property="twitter:image" content="https://temper.tv/img/bg.png">
{{ end }} {{ end }}
{{- /* Requirements special to twitter, just don't touch these tbh */ -}} {{- /* 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 */ -}} {{- /* https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/summary-card-with-large-image */ -}}