hugo-strata-theme icon indicating copy to clipboard operation
hugo-strata-theme copied to clipboard

Code Typo in README.md

Open agucova opened this issue 6 years ago • 3 comments

In the menu section there is a small but powerful typo.

+++
menu = "main"
+++

The equal sign should be replaced to a colon:

+++
menu: "main"
+++

Oherwise:

ERROR 2018/02/02 19:01:09 failed to parse page metadata for "acerca.md": yaml: line 5: could not find expected ':'
Error: Error building site: Errors reading pages: Error: failed to parse page metadata for "acerca.md": yaml: line 5: could not find expected ':' for acerca.md

agucova avatar Feb 02 '18 21:02 agucova

This is valid TOML code, see https://gohugo.io/content-management/front-matter/#front-matter-formats

hanzei avatar Apr 14 '18 07:04 hanzei

@agucova is actually referring to the .md files, not config.toml. By adding menu: "main" to the frontmatter, you can get your page automatically added to the menu without having to touch config.toml.

BenBergman avatar Apr 14 '18 16:04 BenBergman

@agucova @hanzei @BenBergman

I've forked this repo and started working on updating it if you're interested in an actively developed theme:

https://github.com/Programazing/hugo-strata-theme-II

Programazing avatar Nov 05 '19 18:11 Programazing