joinpeertube/themes/hugo-bootstrap-premium/layouts/partials/base/metas.html

57 lines
2.4 KiB
HTML
Raw Normal View History

2018-02-28 15:33:36 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ if .Description }}
<meta name="description" content="{{ .Description }}" />
{{ else }}
<meta name="description" content="{{ .Site.Params.description }}" />
{{ end }}
<meta name="keywords" content="{{ if .Keywords }}{{ range .Keywords }}{{ . }}, {{ end }}{{else if isset .Params "tags" }}{{ range .Params.tags }}{{ . }}, {{ end }}{{end}}">
{{ with .Site.Params.googleplus }}
<link rel="author" href="http://plus.google.com/+{{ . }}">
{{ end }}
<meta property="image" content="{{ .Site.BaseURL }}{{ .Site.Params.OpenGraphImage }}"/>
2018-05-24 09:13:33 +00:00
<meta property="og:title" content="{{ .Title }}">
2018-02-28 15:33:36 +00:00
<meta property="og:site_name" content="{{ .Site.Title }}"/>
2018-05-24 09:41:30 +00:00
<meta property="og:url" content="{{ .Permalink }}" />
2018-02-28 15:33:36 +00:00
<meta property="og:locale" content="{{ .Site.LanguageCode }}">
<meta property="og:type" content="website" />
<meta property="og:description" content="{{ .Description }}"/>
<meta property="og:image" content="{{ .Site.BaseURL }}{{ .Site.Params.OpenGraphImage }}"/>
2018-02-28 15:33:36 +00:00
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
<meta property="og:article:modified_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
2018-05-24 09:13:33 +00:00
{{ if .Keywords }}
{{ range .Keywords }}
2018-02-28 15:33:36 +00:00
<meta property="og:article:tag" content="{{ . }}">
2018-05-24 09:13:33 +00:00
{{ end }}
{{ else if isset .Params "tags" }}
{{ range .Params.tags }}
2018-02-28 15:33:36 +00:00
<meta property="og:article:tag" content="{{ . }}">
{{ end }}
2018-05-24 09:13:33 +00:00
{{ end }}
2018-02-28 15:33:36 +00:00
2018-05-24 09:13:33 +00:00
{{ if ne .Site.Params.twitter "" }}
2018-05-22 15:19:53 +00:00
<meta name="twitter:card" content="summary_large_image" />
2018-02-28 15:33:36 +00:00
<meta name="twitter:site" content="@{{ .Site.Params.twitter }}" />
<meta name="twitter:creator" content="@{{ .Site.Params.twitter }}" />
<meta name="twitter:title" content="{{ .Title }}" />
<meta name="twitter:description" content="{{ .Description }}" />
<meta name="twitter:url" content="{{ .Permalink }}" />
<meta name="twitter:domain" content="{{ .Site.BaseURL }}">
<meta name="twitter:image" content="{{ .Site.BaseURL }}{{ .Site.Params.OpenGraphImage }}"/>
2018-02-28 15:33:36 +00:00
{{ end }}
{{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Title }}" />
{{ end }}
<link rel="canonical" href="{{ .Permalink }}" />
<link rel="icon" href="/favicon.png">
{{ .Hugo.Generator }}