Hugo serve not able to generate master docs

I get errors on the latest master branch of istio.io when I try to run “hugo serve” to generate the site for local access.

Is there something broken ? Or am I doing something wrong now? (this used to work, at least a week or two ago it did).

$ hugo serve
Building sites … ERROR 2019/01/16 09:55:35 error processing shortcode “shortcodes/boilerplate.html” for page “docs/examples/advanced-gateways/http-proxy/index.md”: template: shortcodes/boilerplate.html:3:17: executing “shortcodes/boilerplate.html” at <.Position>: can’t evaluate field Position in type *hugolib.ShortcodeWithPage
ERROR 2019/01/16 09:55:35 error processing shortcode “shortcodes/boilerplate.html” for page “docs/examples/advanced-gateways/egress-gateway/index.md”: template: shortcodes/boilerplate.html:3:17: executing “shortcodes/boilerplate.html” at <.Position>: can’t evaluate field Position in type *hugolib.ShortcodeWithPage
ERROR 2019/01/16 09:55:36 error processing shortcode “shortcodes/boilerplate.html” for page “about/contribute/writing-a-new-topic/index.md”: template: shortcodes/boilerplate.html:3:17: executing “shortcodes/boilerplate.html” at <.Position>: can’t evaluate field Position in type *hugolib.ShortcodeWithPage
ERROR 2019/01/16 09:55:36 error processing shortcode “shortcodes/boilerplate.html” for page “docs/tasks/traffic-management/egress/index.md”: template: shortcodes/boilerplate.html:3:17: executing “shortcodes/boilerplate.html” at <.Position>: can’t evaluate field Position in type *hugolib.ShortcodeWithPage
ERROR 2019/01/16 09:55:36 error processing shortcode “shortcodes/boilerplate.html” for page “docs/examples/advanced-gateways/wildcard-egress-hosts/index.md”: template: shortcodes/boilerplate.html:3:17: executing “shortcodes/boilerplate.html” at <.Position>: can’t evaluate field Position in type *hugolib.ShortcodeWithPage
ERROR 2019/01/16 09:55:36 error processing shortcode “shortcodes/boilerplate.html” for page “docs/examples/advanced-gateways/egress_sni_monitoring_and_policies/index.md”: template: shortcodes/boilerplate.html:3:17: executing “shortcodes/boilerplate.html” at <.Position>: can’t evaluate field Position in type *hugolib.ShortcodeWithPage
ERROR 2019/01/16 09:55:36 error processing shortcode “shortcodes/boilerplate.html” for page “docs/examples/advanced-gateways/http-proxy/index.md”: template: shortcodes/boilerplate.html:3:17: executing “shortcodes/boilerplate.html” at <.Position>: can’t evaluate field Position in type *hugolib.ShortcodeWithPage
Total in 2179 ms
Error: Error building site: logged 7 error(s)

My version of hugo:

$ hugo version
Hugo Static Site Generator v0.48 linux/amd64 BuildDate: 2018-08-29T06:33:51Z

You need a new version of Hugo, at least 0.51

Or alternatively, use “make serve” instead. That gets Hugo out of a Docker image which is always up to date.

Thanks.

1 Like