Revert the "standardize author data"

There were some breaking changes etc. that is too late to fix for 0.17.

Let us think this through and add proper author support for Hugo 0.18.

Fixes #2464

Revert "docs: Add documentation for author profiles"

This reverts commit b6673e5309.

Revert "Add First Class Author Support"

This reverts commit cf978c0649.
This commit is contained in:
Bjørn Erik Pedersen
2016-09-18 19:10:11 +02:00
parent 83533a8881
commit 4a79fa0c33
10 changed files with 53 additions and 398 deletions

View File

@@ -165,7 +165,7 @@ type SiteInfo struct {
BaseURL template.URL
Taxonomies TaxonomyList
Authors Authors
Authors AuthorList
Social SiteSocial
Sections Taxonomy
Pages *Pages // Includes only pages in this language
@@ -176,6 +176,7 @@ type SiteInfo struct {
Hugo *HugoInfo
Title string
RSSLink string
Author map[string]interface{}
LanguageCode string
DisqusShortname string
GoogleAnalytics string
@@ -732,11 +733,6 @@ func (s *Site) readDataFromSourceFS() error {
}
err = s.loadData(dataSources)
// extract author data from /data/_authors then delete it from .Data
s.Info.Authors = mapToAuthors(cast.ToStringMap(s.Data["_authors"]))
delete(s.Data, "_authors")
s.timerStep("load data")
return err
}
@@ -912,6 +908,7 @@ func (s *Site) initializeSiteInfo() {
s.Info = SiteInfo{
BaseURL: template.URL(helpers.SanitizeURLKeepTrailingSlash(viper.GetString("BaseURL"))),
Title: lang.GetString("Title"),
Author: lang.GetStringMap("author"),
Social: lang.GetStringMapString("social"),
LanguageCode: lang.GetString("languagecode"),
Copyright: lang.GetString("copyright"),