From 2b6063c3e388056597af88709ff017d15f53c962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 4 Jan 2022 13:07:10 +0100 Subject: Misc depreation updates * Deprecate .Page.Path when backed by a file * site.Permalinks * --ignoreVendor (use --ignoreVendorPaths) Closes #9348 Closes #9349 --- hugolib/site.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'hugolib/site.go') diff --git a/hugolib/site.go b/hugolib/site.go index dce4b8d25..bde8a2199 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -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 { -- cgit v1.2.3