mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
662e12f348
commit
fb53987a4f
1 changed files with 4 additions and 3 deletions
|
@ -1318,10 +1318,11 @@ func (p *Page) parse(reader io.Reader) error {
|
|||
p.lang = p.Source.File.Lang()
|
||||
|
||||
meta, err := psr.Metadata()
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to parse page metadata for %q: %s", p.File.Path(), err)
|
||||
}
|
||||
|
||||
if meta != nil {
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to parse page metadata for %s: %s", p.File.Path(), err)
|
||||
}
|
||||
if err = p.update(meta); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue