freedom/layouts/partials/head.html
2022-09-21 15:54:30 -04:00

42 lines
1.9 KiB
HTML

<title>{{ .Title}}</title>
<link rel="stylesheet" href="{{.Site.BaseURL}}css/theme.css">
<link rel="stylesheet" href="{{.Site.BaseURL}}style.css">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="title" content="{{ .Site.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"/>
<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}}">
<meta property="og:type" content="video">
<meta name="twitter:player:width" content="480" />
<meta name="twitter:player:height" content="360" />
<link rel="alternate" type="application/rss+xml" href="{{.Site.BaseURL}}/index.xml">
<meta property="twitter:player" content="{{.Site.BaseURL}}/embed?v={{.Params.video}}">
{{else}}
{{if .Params.peertubeURL}}
<meta property="og:video" content="{{.Params.peertubeURL}}">
{{else}}
{{if .Params.audioURL}}
<meta property="og:audio" content="{{.Site.BaseURL}}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="{{.Site.BaseURL}}media/{{.Params.image}}">
<meta property="twitter:image" content="{{.Site.BaseURL}}media/{{.Params.image}}">
{{else}}
<meta property="og:image" content="{{.Site.BaseURL}}logo.png">
<meta property="twitter:image" content="{{.Site.BaseURL}}logo.png">
{{end}}