mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +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:
@@ -689,12 +689,6 @@ func (s *SiteInfo) AllRegularPages() page.Pages {
|
||||
return s.s.AllRegularPages()
|
||||
}
|
||||
|
||||
func (s *SiteInfo) Permalinks() map[string]string {
|
||||
// Remove in 0.61
|
||||
helpers.Deprecated(".Site.Permalinks", "", true)
|
||||
return s.permalinks
|
||||
}
|
||||
|
||||
func (s *SiteInfo) LastChange() time.Time {
|
||||
return s.s.lastmod
|
||||
}
|
||||
@@ -825,7 +819,7 @@ func (s siteRefLinker) logNotFound(ref, what string, p page.Page, position text.
|
||||
} else if p == nil {
|
||||
s.errorLogger.Printf("[%s] REF_NOT_FOUND: Ref %q: %s", s.s.Lang(), ref, what)
|
||||
} else {
|
||||
s.errorLogger.Printf("[%s] REF_NOT_FOUND: Ref %q from page %q: %s", s.s.Lang(), ref, p.Path(), what)
|
||||
s.errorLogger.Printf("[%s] REF_NOT_FOUND: Ref %q from page %q: %s", s.s.Lang(), ref, p.Pathc(), what)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1402,7 +1396,6 @@ func (s *Site) getMenusFromConfig() navigation.Menus {
|
||||
}
|
||||
s.Log.Errorf("unable to process menus in site config\n")
|
||||
s.Log.Errorln(err)
|
||||
|
||||
}
|
||||
|
||||
for _, entry := range m {
|
||||
|
Reference in New Issue
Block a user