Better opengraph tags and add instances link
This commit is contained in:
parent
a1cd0a3972
commit
aa56cf0682
6 changed files with 25 additions and 5 deletions
|
@ -56,6 +56,7 @@ name = "paper"
|
||||||
switchlang = true
|
switchlang = true
|
||||||
# You can use markdown here.
|
# You can use markdown here.
|
||||||
BrandImage = "/brand.png"
|
BrandImage = "/brand.png"
|
||||||
|
OpenGraphImage = "notebook.jpg"
|
||||||
brand = "Peertube"
|
brand = "Peertube"
|
||||||
topline = ""
|
topline = ""
|
||||||
footline = ""
|
footline = ""
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
languageCode = "en"
|
languageCode = "en"
|
||||||
weight = 1
|
weight = 1
|
||||||
title = "PeerTube"
|
title = "PeerTube"
|
||||||
|
description = "A decentralized video hosting network, based on free/libre software"
|
||||||
|
|
||||||
[[Languages.en.menu.main]]
|
[[Languages.en.menu.main]]
|
||||||
name = "FAQ"
|
name = "FAQ"
|
||||||
|
@ -33,3 +34,9 @@ name = "Source code"
|
||||||
weight = 5
|
weight = 5
|
||||||
identifier = ""
|
identifier = ""
|
||||||
url = "https://github.com/Chocobozzz/PeerTube"
|
url = "https://github.com/Chocobozzz/PeerTube"
|
||||||
|
|
||||||
|
[[Languages.en.menu.main]]
|
||||||
|
name = "Instances"
|
||||||
|
weight = 6
|
||||||
|
identifier = ""
|
||||||
|
url = "https://instances.joinpeertube.org"
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
languageCode = "fr"
|
languageCode = "fr"
|
||||||
weight = 1
|
weight = 1
|
||||||
title = "PeerTube"
|
title = "PeerTube"
|
||||||
|
description = "L'hébergement de vidéos décentralisé, en réseau, basé sur du logiciel libre"
|
||||||
|
|
||||||
[[Languages.fr.menu.main]]
|
[[Languages.fr.menu.main]]
|
||||||
name = "FAQ"
|
name = "FAQ"
|
||||||
|
@ -33,3 +34,9 @@ name = "Code source"
|
||||||
weight = 5
|
weight = 5
|
||||||
identifier = ""
|
identifier = ""
|
||||||
url = "https://github.com/Chocobozzz/PeerTube"
|
url = "https://github.com/Chocobozzz/PeerTube"
|
||||||
|
|
||||||
|
[[Languages.fr.menu.main]]
|
||||||
|
name = "Instances"
|
||||||
|
weight = 6
|
||||||
|
identifier = ""
|
||||||
|
url = "https://instances.joinpeertube.org"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
+++
|
+++
|
||||||
|
|
||||||
date = "2018-02-28T14:41:00+01:00"
|
date = "2018-02-28T14:41:00+01:00"
|
||||||
title = "Home"
|
title = "PeerTube"
|
||||||
author = "Framasoft"
|
author = "Framasoft"
|
||||||
draft = false
|
draft = false
|
||||||
type = "page"
|
type = "page"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
+++
|
+++
|
||||||
|
|
||||||
date = "2018-02-28T14:41:00+01:00"
|
date = "2018-02-28T14:41:00+01:00"
|
||||||
title = "Accueil"
|
title = "PeerTube"
|
||||||
author = "Framasoft"
|
author = "Framasoft"
|
||||||
draft = false
|
draft = false
|
||||||
type = "page"
|
type = "page"
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
<link rel="author" href="http://plus.google.com/+{{ . }}">
|
<link rel="author" href="http://plus.google.com/+{{ . }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
<meta property="image" content="{{ .Site.BaseURL }}{{ .Site.Params.OpenGraphImage }}"/>
|
||||||
|
|
||||||
<meta property="og:title" content="{{ .Title }} {{ if ne .Title .Site.Title }} · {{ .Site.Title }} {{ end }}">
|
<meta property="og:title" content="{{ .Title }} {{ if ne .Title .Site.Title }} · {{ .Site.Title }} {{ end }}">
|
||||||
<meta property="og:site_name" content="{{ .Site.Title }}"/>
|
<meta property="og:site_name" content="{{ .Site.Title }}"/>
|
||||||
<meta property="og:url" content="{{ .Permalink }}" />
|
<meta property="og:url" content="{{ .Permalink }}" />
|
||||||
|
@ -23,6 +25,7 @@
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<meta property="og:type" content="article" />
|
<meta property="og:type" content="article" />
|
||||||
<meta property="og:description" content="{{ .Description }}"/>
|
<meta property="og:description" content="{{ .Description }}"/>
|
||||||
|
<meta property="og:image" content="{{ .Site.BaseURL }}{{ .Site.Params.OpenGraphImage }}"/>
|
||||||
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
|
<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 }}" />
|
<meta property="og:article:modified_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
|
||||||
|
|
||||||
|
@ -44,6 +47,8 @@
|
||||||
<meta name="twitter:description" content="{{ .Description }}" />
|
<meta name="twitter:description" content="{{ .Description }}" />
|
||||||
<meta name="twitter:url" content="{{ .Permalink }}" />
|
<meta name="twitter:url" content="{{ .Permalink }}" />
|
||||||
<meta name="twitter:domain" content="{{ .Site.BaseURL }}">
|
<meta name="twitter:domain" content="{{ .Site.BaseURL }}">
|
||||||
|
<meta name="twitter:image" content="{{ .Site.BaseURL }}{{ .Site.Params.OpenGraphImage }}"/>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if ne .Site.Params.googleplus "" }}
|
{{ if ne .Site.Params.googleplus "" }}
|
||||||
|
|
Loading…
Reference in a new issue