mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Misc depreation updates
* Deprecate .Page.Path when backed by a file * site.Permalinks * --ignoreVendor (use --ignoreVendorPaths) Closes #9348 Closes #9349
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user