mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
@@ -251,7 +251,17 @@ func (s *Site) render404() error {
|
||||
return err
|
||||
}
|
||||
|
||||
templ := s.lookupLayouts("404.html")
|
||||
var d output.LayoutDescriptor
|
||||
d.Kind = kind404
|
||||
|
||||
templ, found, err := s.Tmpl().LookupLayout(d, output.HTMLFormat)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if !found {
|
||||
return nil
|
||||
}
|
||||
|
||||
targetPath := p.targetPaths().TargetFilename
|
||||
|
||||
if targetPath == "" {
|
||||
|
Reference in New Issue
Block a user