temper-tv/main-site/themes/temper/layouts/partials/head.html

40 lines
2.2 KiB
HTML

<head>
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<link href="/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/css/style.css">
<link rel="shortcut icon" type="image/png" href="{{ .Site.BaseURL }}/img/favicon.png">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
{{- /* HTML meta tags */ -}}
<title>{{ default .Params.Title .Site.Title }}</title>
<meta name="description" content="{{ default .Site.Params.Description .Params.Description }}">
{{- /* Facebook meta tags */ -}}
<meta property="og:title" content="{{ default .Site.Title .Params.Title }}">
<meta property="og:description" content="{{ default .Site.Params.Description .Params.Description }}">
<meta property="og:site_name" content="{{ .Site.Params.Name }}">
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:type" content="website">
{{ if .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="{{ .Site.BaseURL }}/img/bg.png">
{{ end }}
{{- /* Twitter meta tags */ -}}
<meta name="twitter:title" content="{{ default .Site.Title .Params.Title }}">
<meta name="twitter:description" content="{{ default .Site.Params.Description .Params.Description }}">
<meta property="twitter:url" content="{{ .Permalink }}">
{{ if .Params.Thumbnail }}
{{- /* Hard coding this because baseURL is super delicate */ -}}
<meta property="twitter:image" content="{{ .Site.BaseURL }}{{ .Params.Thumbnail }}">
{{ else }}
<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 */ -}}
<meta property="twitter:domain" content="temper.tv">
<meta name="twitter:card" content="summary_large_image">
</head>