Skip to content

Commit

Permalink
Added missing "Social" section to SiteInfo
Browse files Browse the repository at this point in the history
I could be wrong here, but it looks to me like .Site.Social.facebook is used in tpl/template_embedded.go, but the variable is never set. I've added a line to initializeSiteInfo to map the info from config into this variable.
  • Loading branch information
delputnam authored and bep committed Jul 2, 2015
1 parent 24c8226 commit 9b3d0cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hugolib/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ func (s *Site) initializeSiteInfo() {
BaseURL: template.URL(helpers.SanitizeURLKeepTrailingSlash(viper.GetString("BaseURL"))),
Title: viper.GetString("Title"),
Author: viper.GetStringMap("author"),
Social: viper.GetStringMapString("social"),
LanguageCode: viper.GetString("languagecode"),
Copyright: viper.GetString("copyright"),
DisqusShortname: viper.GetString("DisqusShortname"),
Expand Down

0 comments on commit 9b3d0cf

Please sign in to comment.