mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-23 08:13:52 +00:00
Added missing "Social" section to SiteInfo
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.
This commit is contained in:
parent
24c8226cbf
commit
9b3d0cf5bf
1 changed files with 1 additions and 0 deletions
|
@ -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"),
|
||||
|
|
Loading…
Reference in a new issue