Hardcoding img paths for twitter and meta
This commit is contained in:
parent
75bbb538a6
commit
970e41e4e4
@ -16,9 +16,10 @@
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:type" content="website">
|
||||
{{ if .Params.Thumbnail }}
|
||||
<meta property="og:image" content="{{ .Params.Thumbnail }}">
|
||||
<meta property="og:image" content="https://temper.tv{{ .Params.Thumbnail }}">
|
||||
{{ else }}
|
||||
<meta property="og:image" content="/img/bg.png">
|
||||
{{- /* Hard coding this because baseURL is super delicate */ -}}
|
||||
<meta property="og:image" content="https://temper.tv/img/bg.png">
|
||||
{{ end }}
|
||||
|
||||
{{- /* Twitter meta tags */ -}}
|
||||
@ -26,9 +27,10 @@
|
||||
<meta name="twitter:description" content="{{ default .Site.Params.Description .Params.Description }}">
|
||||
<meta property="twitter:url" content="{{ .Permalink }}">
|
||||
{{ if .Params.Thumbnail }}
|
||||
<meta property="twitter:image" content="{{ .Params.Thumbnail }}">
|
||||
{{- /* Hard coding this because baseURL is super delicate */ -}}
|
||||
<meta property="twitter:image" content="https://temper.tv{{ .Params.Thumbnail }}">
|
||||
{{ else }}
|
||||
<meta property="twitter:image" content="/img/bg.png">
|
||||
<meta property="twitter:image" content="{{ .Site.BaseURL }}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