diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-01-04 13:07:10 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-01-04 17:10:39 +0100 |
commit | 2b6063c3e388056597af88709ff017d15f53c962 (patch) | |
tree | a86d4dde3cd5b7df5bb5738a248a0da0c5f640fd /hugolib/content_map_page.go | |
parent | 56ab83a59712725e1ce0dd3fd516cc7c190c8478 (diff) | |
download | hugo-2b6063c3e388056597af88709ff017d15f53c962.tar.gz hugo-2b6063c3e388056597af88709ff017d15f53c962.zip |
Misc depreation updates
* Deprecate .Page.Path when backed by a file
* site.Permalinks
* --ignoreVendor (use --ignoreVendorPaths)
Closes #9348
Closes #9349
Diffstat (limited to 'hugolib/content_map_page.go')
-rw-r--r-- | hugolib/content_map_page.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hugolib/content_map_page.go b/hugolib/content_map_page.go index 698c96cff..228564351 100644 --- a/hugolib/content_map_page.go +++ b/hugolib/content_map_page.go @@ -403,7 +403,7 @@ func (m *pageMap) assembleResources(s string, p *pageState, parentBucket *pagesM if err != nil { return true } - rp.m.resourcePath = filepath.ToSlash(strings.TrimPrefix(rp.Path(), p.File().Dir())) + rp.m.resourcePath = filepath.ToSlash(strings.TrimPrefix(rp.File().Path(), p.File().Dir())) r = rp case files.ContentClassFile: @@ -468,7 +468,6 @@ func (m *pageMap) assembleSections() error { kind := page.KindSection if s == "/" { - kind = page.KindHome } @@ -580,7 +579,7 @@ func (m *pageMap) attachPageToViews(s string, b *contentNode) { w := getParamToLower(b.p, viewName.plural+"_weight") weight, err := cast.ToIntE(w) if err != nil { - m.s.Log.Errorf("Unable to convert taxonomy weight %#v to int for %q", w, b.p.Path()) + m.s.Log.Errorf("Unable to convert taxonomy weight %#v to int for %q", w, b.p.Pathc()) // weight will equal zero, so let the flow continue } |