aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/page.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-01-04 13:07:10 +0100
committerBjørn Erik Pedersen <[email protected]>2022-01-04 17:10:39 +0100
commit2b6063c3e388056597af88709ff017d15f53c962 (patch)
treea86d4dde3cd5b7df5bb5738a248a0da0c5f640fd /hugolib/page.go
parent56ab83a59712725e1ce0dd3fd516cc7c190c8478 (diff)
downloadhugo-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/page.go')
-rw-r--r--hugolib/page.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/page.go b/hugolib/page.go
index f35865cf0..d2d962044 100644
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -145,7 +145,7 @@ func (p *pageState) Eq(other interface{}) bool {
}
func (p *pageState) GetIdentity() identity.Identity {
- return identity.NewPathIdentity(files.ComponentFolderContent, filepath.FromSlash(p.Path()))
+ return identity.NewPathIdentity(files.ComponentFolderContent, filepath.FromSlash(p.Pathc()))
}
func (p *pageState) GitInfo() *gitmap.GitInfo {
@@ -895,8 +895,8 @@ func (p *pageState) pathOrTitle() string {
return p.File().Filename()
}
- if p.Path() != "" {
- return p.Path()
+ if p.Pathc() != "" {
+ return p.Pathc()
}
return p.Title()