mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-01 22:42:45 +02:00
resources: Replace error handling in GetRemote with try (note)
Closes #13216
This commit is contained in:
@@ -185,10 +185,6 @@ func (p *pageState) isContentNodeBranch() bool {
|
||||
return p.IsNode()
|
||||
}
|
||||
|
||||
func (p *pageState) Err() resource.ResourceError {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Eq returns whether the current page equals the given page.
|
||||
// This is what's invoked when doing `{{ if eq $page $otherPage }}`
|
||||
func (p *pageState) Eq(other any) bool {
|
||||
|
Reference in New Issue
Block a user