mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -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()
|
p.lang = p.Source.File.Lang()
|
||||||
|
|
||||||
meta, err := psr.Metadata()
|
meta, err := psr.Metadata()
|
||||||
if meta != nil {
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to parse page metadata for %s: %s", p.File.Path(), err)
|
return fmt.Errorf("failed to parse page metadata for %q: %s", p.File.Path(), err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if meta != nil {
|
||||||
if err = p.update(meta); err != nil {
|
if err = p.update(meta); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue