Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML syntax error in archetypes/** #331

Open
salopst opened this issue Sep 18, 2021 · 0 comments
Open

YAML syntax error in archetypes/** #331

salopst opened this issue Sep 18, 2021 · 0 comments

Comments

@salopst
Copy link

salopst commented Sep 18, 2021

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!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant