Added missing "Social" section to SiteInfo - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 9b3d0cf5bf669603fa017e7054fe0ef8343c9e1d
(DIR) parent 24c8226cbfd0c844c79937e0ccd58d8e899a3b4f
(HTM) Author: delputnam <del@putnams.net>
Date: Thu, 2 Jul 2015 10:04:17 -0400
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.
Diffstat:
M hugolib/site.go | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git a/hugolib/site.go b/hugolib/site.go
@@ -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"),