forked from nutomic/joinpeertube
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
|
||||
# You can use markdown here.
|
||||
BrandImage = "/brand.png"
|
||||
OpenGraphImage = "notebook.jpg"
|
||||
brand = "Peertube"
|
||||
topline = ""
|
||||
footline = ""
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
languageCode = "en"
|
||||
weight = 1
|
||||
title = "PeerTube"
|
||||
description = "A decentralized video hosting network, based on free/libre software"
|
||||
|
||||
[[Languages.en.menu.main]]
|
||||
name = "FAQ"
|
||||
|
@ -33,3 +34,9 @@ name = "Source code"
|
|||
weight = 5
|
||||
identifier = ""
|
||||
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"
|
||||
weight = 1
|
||||
title = "PeerTube"
|
||||
description = "L'hébergement de vidéos décentralisé, en réseau, basé sur du logiciel libre"
|
||||
|
||||
[[Languages.fr.menu.main]]
|
||||
name = "FAQ"
|
||||
|
@ -33,3 +34,9 @@ name = "Code source"
|
|||
weight = 5
|
||||
identifier = ""
|
||||
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"
|
||||
title = "Home"
|
||||
title = "PeerTube"
|
||||
author = "Framasoft"
|
||||
draft = false
|
||||
type = "page"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
+++
|
||||
|
||||
date = "2018-02-28T14:41:00+01:00"
|
||||
title = "Accueil"
|
||||
title = "PeerTube"
|
||||
author = "Framasoft"
|
||||
draft = false
|
||||
type = "page"
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
<link rel="author" href="http://plus.google.com/+{{ . }}">
|
||||
{{ 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:site_name" content="{{ .Site.Title }}"/>
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
|
@ -23,6 +25,7 @@
|
|||
{{ else }}
|
||||
<meta property="og:type" content="article" />
|
||||
<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: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:url" content="{{ .Permalink }}" />
|
||||
<meta name="twitter:domain" content="{{ .Site.BaseURL }}">
|
||||
<meta name="twitter:image" content="{{ .Site.BaseURL }}{{ .Site.Params.OpenGraphImage }}"/>
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ if ne .Site.Params.googleplus "" }}
|
||||
|
|
Loading…
Reference in a new issue