mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
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 commitb6673e5309
. Revert "Add First Class Author Support" This reverts commitcf978c0649
.
This commit is contained in:
@@ -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"),
|
||||
|
Reference in New Issue
Block a user