From d1cf53f5f4d71b9461e0fe58193b5a8418b572e7 Mon Sep 17 00:00:00 2001 From: Bruno Amaral Date: Sun, 26 May 2019 18:24:46 +0100 Subject: [PATCH] Remove references to Google+ According to google, this is no longer supported and structured data should be used instead: https://support.google.com/webmasters/answer/6083347?hl=en --- docs/content/en/content-management/authors.md | 5 ++--- hugolib/site.go | 1 - resources/page/page_author.go | 1 - tpl/tplimpl/embedded/templates.autogen.go | 2 +- tpl/tplimpl/embedded/templates/schema.html | 1 - 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/content/en/content-management/authors.md b/docs/content/en/content-management/authors.md index 530557ac0..6584a1b1c 100644 --- a/docs/content/en/content-management/authors.md +++ b/docs/content/en/content-management/authors.md @@ -44,7 +44,6 @@ weight = 10 [social] facebook = "alice.allison" twitter = "alice" - googleplus = "aliceallison1" website = "www.example.com" [params] @@ -108,9 +107,9 @@ You can find a list of all template variables to access the profile information ### Link Social Network Accounts -As aforementioned, Hugo is able to generate links to profiles of the most popular social networks. The following social networks with their corrersponding identifiers are supported: `github`, `facebook`, `twitter`, `googleplus`, `pinterest`, `instagram`, `youtube` and `linkedin`. +As aforementioned, Hugo is able to generate links to profiles of the most popular social networks. The following social networks with their corrersponding identifiers are supported: `github`, `facebook`, `twitter`, `pinterest`, `instagram`, `youtube` and `linkedin`. -This is can be done with the `.Social.URL` function. Its only parameter is the name of the social network as they are defined in the profile (e.g. `facebook`, `googleplus`). Custom variables like `website` remain as they are. +This is can be done with the `.Social.URL` function. Its only parameter is the name of the social network as they are defined in the profile (e.g. `facebook`). Custom variables like `website` remain as they are. Most articles feature a small section with information about the author at the end. Let's create one containing the author's name, a thumbnail, a (summarized) biography and links to all social networks: diff --git a/hugolib/site.go b/hugolib/site.go index 7cc80e22f..b1441ca8a 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -672,7 +672,6 @@ func (s *SiteInfo) DisqusShortname() string { // facebook_admin // twitter // twitter_domain -// googleplus // pinterest // instagram // youtube diff --git a/resources/page/page_author.go b/resources/page/page_author.go index 9e8a95182..58be20426 100644 --- a/resources/page/page_author.go +++ b/resources/page/page_author.go @@ -36,7 +36,6 @@ type Author struct { // - github // - facebook // - twitter -// - googleplus // - pinterest // - instagram // - youtube diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 58d0b2799..cee4276c9 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -269,7 +269,7 @@ if (!doNotTrack) { {{ end }} {{ end }}`}, - {`schema.html`, `{{ with .Site.Social.GooglePlus }}{{ end }} + {`schema.html`, ` diff --git a/tpl/tplimpl/embedded/templates/schema.html b/tpl/tplimpl/embedded/templates/schema.html index 16c97be60..a76dbdd42 100644 --- a/tpl/tplimpl/embedded/templates/schema.html +++ b/tpl/tplimpl/embedded/templates/schema.html @@ -1,4 +1,3 @@ -{{ with .Site.Social.GooglePlus }}{{ end }}