rhazdon / hugo-theme-hello-friend-ng

Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!
https://github.com/rhazdon/hugo-theme-hello-friend-ng/
Other
1.46k stars 777 forks source link

YAML syntax error in archetypes/** #331

Open salopst opened 3 years ago

salopst commented 3 years ago

Github pages reports the following error:

There was a YAML syntax error on line 2 column 1 in ): did not find expected key while parsing a block mapping at line 2 column 1 YAML Exception reading themes/hello-friend-ng/archetypes/posts.md: (: did not find expected key while parsing a block mapping.

I think the offending block is:

title: "{{ replace .Name "-" " " | title }}"

which in a local copy of archetypes/posts.md I have replaced with

title: "{{ .Name  | humanize | title}}"

humanize gives near equivalent (in fact a little bit more) experience to replace in this case.

Thanks for the theme. I love it!!