freedom/layouts/partials/head.html

41 lines
1.7 KiB
HTML
Raw Normal View History

2022-08-22 20:03:48 -04:00
<title>{{ .Title}}</title>
2022-09-17 19:22:55 -04:00
<link rel="stylesheet" href="{{.Site.BaseURL}}css/theme.css">
<link rel="stylesheet" href="{{.Site.BaseURL}}style.css">
2022-08-22 20:03:48 -04:00
<meta charset="utf-8" />
2022-09-15 17:12:24 -04:00
<meta name="title" content="{{ .Site.Title }}">
2022-08-22 20:03:48 -04:00
<meta name="description" content="{{.Params.description}}">
<meta name="og:site_name" content="Libre Solutions Network">
<meta property="og:title" content="{{ .Title }}">
<meta property="og:description" content="{{.Params.description}}">
<meta property="og:url" content="{{.Permalink}}">
{{if .Params.video}}
<meta name="twitter:card" content="player"/>
2022-09-15 17:12:24 -04:00
<meta property="og:video" content="{{.Site.BaseURL}}embed?v={{.Params.video}}">
<meta property="og:video:url" content="{{.Site.BaseURL}}embed?v={{.Params.video}}">
<meta property="og:video:secure_url" content="{{.Site.BaseURL}}embed?v={{.Params.video}}">
2022-08-22 20:03:48 -04:00
<meta property="og:type" content="video">
<meta name="twitter:player:width" content="480" />
<meta name="twitter:player:height" content="360" />
2022-09-15 17:12:24 -04:00
<meta property="twitter:player" content="{{.Site.BaseURL}}embed?v={{.Params.video}}">
2022-08-22 20:03:48 -04:00
{{else}}
{{if .Params.peertubeURL}}
<meta property="og:video" content="{{.Params.peertubeURL}}">
{{else}}
{{if .Params.audioURL}}
2022-09-15 17:12:24 -04:00
<meta property="og:audio" content="{{.Site.BaseURL}}media/{{.Params.audioURL}}">
2022-08-22 20:03:48 -04:00
<meta property="og:type" content="audio">
{{else}}
<meta property="og:type" content="website">
<meta property="twitter:card" content="summary_large_image">
{{end}}
{{end}}
{{end}}
{{ if .Params.image }}
2022-09-15 17:12:24 -04:00
<meta property="og:image" content="{{.Site.BaseURL}}media/{{.Params.image}}">
<meta property="twitter:image" content="{{.Site.BaseURL}}media/{{.Params.image}}">
2022-08-22 20:03:48 -04:00
{{else}}
2022-09-15 17:12:24 -04:00
<meta property="og:image" content="{{.Site.BaseURL}}logo.png">
<meta property="twitter:image" content="{{.Site.BaseURL}}logo.png">
2022-08-22 20:03:48 -04:00
{{end}}