freedom/layouts/partials/head.html

40 lines
1.8 KiB
HTML
Raw Normal View History

2022-08-22 20:03:48 -04:00
<title>{{ .Title}}</title>
2022-08-17 14:50:07 -04:00
<link rel="stylesheet" href="/css/theme.css">
2022-08-22 20:03:48 -04:00
<meta charset="utf-8" />
<meta name="title" content="{{ .Title }}">
<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-08-29 19:54:54 -04:00
<meta property="og:video" content="https://libresolutions.network/embed?v={{.Params.video}}">
<meta property="og:video:url" content="https://libresolutions.network/embed?v={{.Params.video}}">
<meta property="og:video:secure_url" content="https://libresolutions.network/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-08-29 19:54:54 -04:00
<meta property="twitter:player" content="https://libresolutions.network/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}}
<meta property="og:audio" content="https://libresolutions.network/media/{{.Params.audioURL}}">
<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 }}
<meta property="og:image" content="https://libresolutions.network/media/{{.Params.image}}">
<meta property="twitter:image" content="https://libresolutions.network/media/{{.Params.image}}">
{{else}}
<meta property="og:image" content="https://libresolutions.network/logo.png">
<meta property="twitter:image" content="https://libresolutions.network/logo.png">
{{end}}