From 0452ffdf5380a76e0b888cc98b9c182afd32cee3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 24 May 2018 11:13:33 +0200 Subject: [PATCH] Improve meta tags --- config.toml | 1 + config/en.toml | 3 +- config/fr.toml | 3 +- content/faq.en.md | 3 +- content/faq.fr.md | 3 +- content/home.en.md | 3 +- content/home.fr.md | 3 +- .../layouts/partials/base/metas.html | 41 +++++-------------- .../layouts/partials/head.html | 2 +- 9 files changed, 22 insertions(+), 40 deletions(-) diff --git a/config.toml b/config.toml index dcad933..23c3f7f 100644 --- a/config.toml +++ b/config.toml @@ -60,6 +60,7 @@ OpenGraphImage = "/notebook.jpg" brand = "Peertube" topline = "" footline = "" +twitter = "framasoft" customJS = [] customCSS = [] diff --git a/config/en.toml b/config/en.toml index a283a94..a151e12 100644 --- a/config/en.toml +++ b/config/en.toml @@ -6,9 +6,8 @@ [Languages.en] languageCode = "en" +title = "JoinPeerTube" weight = 1 -title = "PeerTube" -description = "A decentralized video hosting network, based on free/libre software" [[Languages.en.menu.main]] name = "FAQ" diff --git a/config/fr.toml b/config/fr.toml index 710da85..b023aae 100644 --- a/config/fr.toml +++ b/config/fr.toml @@ -6,9 +6,8 @@ [Languages.fr] languageCode = "fr" +title = "JoinPeerTube" 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" diff --git a/content/faq.en.md b/content/faq.en.md index e86ff90..54fe6fe 100644 --- a/content/faq.en.md +++ b/content/faq.en.md @@ -1,7 +1,8 @@ +++ date = "2018-02-28T14:41:00+01:00" -title = "FAQ" +title = "PeerTube - FAQ" +description = "" author = "Framasoft" draft = false type = "page" diff --git a/content/faq.fr.md b/content/faq.fr.md index a941805..3d5cfce 100644 --- a/content/faq.fr.md +++ b/content/faq.fr.md @@ -1,7 +1,8 @@ +++ date = "2018-02-28T14:41:00+01:00" -title = "FAQ" +title = "PeerTube - FAQ" +description = "" author = "Framasoft" draft = false type = "page" diff --git a/content/home.en.md b/content/home.en.md index 5cd9ee7..5a9e73a 100644 --- a/content/home.en.md +++ b/content/home.en.md @@ -1,7 +1,8 @@ +++ date = "2018-02-28T14:41:00+01:00" -title = "PeerTube" +title = "Take back the control of video streaming! #JoinPeertube" +description = "PeerTube is an open-source federated video network. Videos can be hosted by the people, with the people, for the people." author = "Framasoft" draft = false type = "page" diff --git a/content/home.fr.md b/content/home.fr.md index 5ab6eac..17ef904 100644 --- a/content/home.fr.md +++ b/content/home.fr.md @@ -1,7 +1,8 @@ +++ date = "2018-02-28T14:41:00+01:00" -title = "PeerTube" +title = "Reprenez le contrôle de vos vidéos ! #JoinPeertube" +description = "PeerTube est un réseau open-source d'hébergement de vidéos. Les vidéos sont diffusées par les gens, avec les gens, pour les gens." author = "Framasoft" draft = false type = "page" diff --git a/themes/hugo-bootstrap-premium/layouts/partials/base/metas.html b/themes/hugo-bootstrap-premium/layouts/partials/base/metas.html index 18e67ce..e06651a 100644 --- a/themes/hugo-bootstrap-premium/layouts/partials/base/metas.html +++ b/themes/hugo-bootstrap-premium/layouts/partials/base/metas.html @@ -15,31 +15,28 @@ - + - + -{{ if not .IsPage }} -{{ else }} - - {{ if .Keywords }} - {{ range .Keywords }} +{{ if .Keywords }} + {{ range .Keywords }} - {{ end }} - {{ else if isset .Params "tags" }} - {{ range .Params.tags }} - - {{ end }} {{ end }} +{{ else if isset .Params "tags" }} + {{ range .Params.tags }} + + {{ end }} +{{ end }} - {{ if ne .Site.Params.twitter "" }} +{{ if ne .Site.Params.twitter "" }} @@ -49,24 +46,6 @@ - {{ end }} - - {{ if ne .Site.Params.googleplus "" }} - - {{ end }} {{ end }} {{ if .RSSLink }} diff --git a/themes/hugo-bootstrap-premium/layouts/partials/head.html b/themes/hugo-bootstrap-premium/layouts/partials/head.html index 9a388fc..b63b942 100644 --- a/themes/hugo-bootstrap-premium/layouts/partials/head.html +++ b/themes/hugo-bootstrap-premium/layouts/partials/head.html @@ -5,7 +5,7 @@ {{ "" | safeHTML }} {{ "" | safeHTML }} - {{ .Title }} {{ if ne .Title .Site.Title }} · {{ .Site.Title }}{{ end }} + {{ .Title }} {{ partial "base/metas.html" . }} {{ partial "base/imports.html" . }}