Better opengraph tags and add instances link

This commit is contained in:
Chocobozzz 2018-05-18 17:28:27 +02:00
parent a1cd0a3972
commit aa56cf0682
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 25 additions and 5 deletions

View file

@ -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 = ""

View file

@ -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"

View file

@ -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"

View file

@ -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"

View file

@ -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"

View file

@ -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 }} &middot; {{ .Site.Title }} {{ end }}"> <meta property="og:title" content="{{ .Title }} {{ if ne .Title .Site.Title }} &middot; {{ .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 "" }}