mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-01 22:42:45 +02:00
@@ -16,6 +16,7 @@ package hugolib
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
|
"fmt"
|
||||||
"github.com/spf13/hugo/source"
|
"github.com/spf13/hugo/source"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -66,6 +67,12 @@ func (mh *MetaHandle) Convert(i interface{}, s *Site, results HandleResults) {
|
|||||||
results <- HandledResult{err: errors.New("file resulted in a nil page")}
|
results <- HandledResult{err: errors.New("file resulted in a nil page")}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if h == nil {
|
||||||
|
results <- HandledResult{err: fmt.Errorf("No handler found for page '%s'. Verify the markup is supported by Hugo.", p.FullFilePath())}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
results <- h.PageConvert(p, s.Tmpl)
|
results <- h.PageConvert(p, s.Tmpl)
|
||||||
p.setSummary()
|
p.setSummary()
|
||||||
p.analyzePage()
|
p.analyzePage()
|
||||||
|
Reference in New Issue
Block a user