josephhutch / aether

A responsive and clean Hugo theme for blogs
MIT License
146 stars 70 forks source link

Unable to create post because of unexpected key when processing archetypes. #7

Closed N07070 closed 5 years ago

N07070 commented 5 years ago

Hello.

First of all, thanks a lot for this theme, it's really beautiful.

I've tried to use it and install it, but when I create a new post I get this error :

ERROR: 2019/01/02 19:12:16 content.go:61: Error processing archetype file /home/user/blog/themes/aether/archetypes/post.md: yaml: line 1: did not find expected key
Error: yaml: line 1: did not find expected key

It seems to have been fixed by deleting the content of the Date and Title line of the aether/archetypes/post.md file, leaving them blank upon generating the website.

I hope it will be fixed in future releases !

josephhutch commented 5 years ago

@N07070, can you paste the front matter for the post you are having trouble with? I'd like to take a look at it and make sure everything is okay on my end. I'm glad you like the theme!

N07070 commented 5 years ago

I'm sorry, I don't understand what you mean by "the front matter" ?

This error happens when I'm trying to create a new post with the hugo new post/helloworld.md command. It's freshly cloned from github.

You're welcome ! It's gonna be live soon.

josephhutch commented 5 years ago

@N07070, What version of Hugo are you using (hugo version)?

N07070 commented 5 years ago

Indeed, I was using a very old version. I updated it and am now using the apt version.

I reverted my changes, and now all if working fine. Thanks for the help !