summaryrefslogtreecommitdiffstats
path: root/hugolib/site.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-10-20 19:09:03 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-10-22 20:46:14 +0200
commit7930d2132a3c36c1aaca20f16f56978c84656b0a (patch)
tree4a83047bf4d531a22dc6b344ca42e42ed8dabba4 /hugolib/site.go
parenteb038cfa0a8ada29dfcba1204ec5c432da9ed7e0 (diff)
hugolib: Remove the now superflous Source struct
See #5324
Diffstat (limited to 'hugolib/site.go')
-rw-r--r--hugolib/site.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index cb980e8ab..8358cf610 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -1467,7 +1467,7 @@ func (s *Site) assembleTaxonomies() {
w := p.getParamToLower(plural + "_weight")
weight, err := cast.ToIntE(w)
if err != nil {
- s.Log.ERROR.Printf("Unable to convert taxonomy weight %#v to int for %s", w, p.Source.File.Path())
+ s.Log.ERROR.Printf("Unable to convert taxonomy weight %#v to int for %s", w, p.File.Path())
// weight will equal zero, so let the flow continue
}
@@ -1799,7 +1799,7 @@ func (s *Site) newNodePage(typ string, sections ...string) *Page {
pageInit: &pageInit{},
pageContentInit: &pageContentInit{},
Kind: typ,
- Source: Source{File: &source.FileInfo{}},
+ File: &source.FileInfo{},
data: make(map[string]interface{}),
Site: &s.Info,
sections: sections,