Skip to content

Commit

Permalink
Remove references to Google+
Browse files Browse the repository at this point in the history
According to google, this is no longer supported and structured data should be used instead: https://support.google.com/webmasters/answer/6083347?hl=en
  • Loading branch information
brunoamaral authored and bep committed May 26, 2019
1 parent 811ee99 commit d1cf53f
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
5 changes: 2 additions & 3 deletions docs/content/en/content-management/authors.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ weight = 10
[social]
facebook = "alice.allison"
twitter = "alice"
googleplus = "aliceallison1"
website = "www.example.com"

[params]
Expand Down Expand Up @@ -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:

Expand Down
1 change: 0 additions & 1 deletion hugolib/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,6 @@ func (s *SiteInfo) DisqusShortname() string {
// facebook_admin
// twitter
// twitter_domain
// googleplus
// pinterest
// instagram
// youtube
Expand Down
1 change: 0 additions & 1 deletion resources/page/page_author.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ type Author struct {
// - github
// - facebook
// - twitter
// - googleplus
// - pinterest
// - instagram
// - youtube
Expand Down
2 changes: 1 addition & 1 deletion tpl/tplimpl/embedded/templates.autogen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion tpl/tplimpl/embedded/templates/schema.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{ with .Site.Social.GooglePlus }}<link rel="publisher" href="{{ . }}"/>{{ end }}
<meta itemprop="name" content="{{ .Title }}">
<meta itemprop="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">

Expand Down

0 comments on commit d1cf53f

Please sign in to comment.