I’m new to Hugo and just working through the Hugo “Quick Start” on the suggestion of an acquaintance. I’m afraid I’m having some problems though, especially with Part 8.
I’m going to mention a major issue I had before Part 8 first, just in case that is part of my current problem. In the part where I was first creating good-to-great.md
, I found that the syntax of that file was quite different from the instructions. I initially typed the file just as it appeared but found it didn’t work. I had to make several changes before it would. For example, although the tutorial said to start and end with three consecutive plus signs, I had to change those to minus signs. Also, the equal signs had to be changed to colons and the three lines between the minus signs essentially had to be written on the same physical line as the minus signs. Now, maybe that is because I was using Notepad at the command prompt in my 64-bit copy of Windows 10 or maybe Hugo itself has changed its rules and the tutorial just hasn’t kept pace but it was tedious to have to figure that out. Newbies shouldn’t be forced to figure out a lot of non-obvious stuff just so they can get through the beginners tutorial! I feel very strongly about that and am very disappointed that this doesn’t seem to be the philosophy of the developers of Hugo.
Okay, that aside, I kept working my way through the tutorial and got through Part 7 okay. I even started Part 8 okay and got as far as replacing the original graphic with the hand containing the leather artifact (book??) successfully. However, when I created li.html
, copied it verbatim from the tutorial, and then redisplayed the website, it still contained the first few lines of the book review although the tutorial said it shouldn’t. I kept going, on the theory that it might take care of itself in due course. I created default_foot.html
, again verbatim from the tutorial, and redisplayed the page, expecting the verbiage about the Robust theme to disappear. It did not. I found and added some book cover images and they displayed okay.
Then I did something I didn’t see in the instructions but that seemed necessary: I added some more files to post/content, patterned on good-to-great.md
but referring to the covers I’d added from Part 8. I created the new .md
files in the same way as I had done good-to-great.md
, starting with hugo new post/my-bookname1.md
and then editing the file with notepad from the command line to put in the appropriate image line.
Then I did a “buildDrafts” and got this ugly mess:
C:\Hugo\Sites\bookshelf>hugo server --theme=hugo_theme_robust --buildDrafts
Started building sites …
ERROR 2017/07/22 21:08:24 unable to read frontmatter at filepos 100: EOF
ERROR 2017/07/22 21:08:24 failed to parse page metadata for “post\farmer-in-the-sky.md”: yaml: line 3: mapping values are not allowed in this context
ERROR 2017/07/22 21:08:24 failed to parse page metadata for “post\red-planet.md”: yaml: line 3: mapping values are not allowed in this context
ERROR 2017/07/22 21:08:24 unable to read frontmatter at filepos 100: EOF
ERROR 2017/07/22 21:08:24 unable to read frontmatter at filepos 96: EOF
ERROR 2017/07/22 21:08:24 unable to read frontmatter at filepos 91: EOF
Error: Error building site: Errors reading pages: Error: unable to read frontmatter at filepos 100: EOF for beyond-this-horizon.md
Error: failed to parse page metadata for “post\farmer-in-the-sky.md”: yaml: line 3: mapping values are not allowed in this context for farmer-in-the-sky.md
Error: failed to parse page metadata for “post\red-planet.md”: yaml: line 3: mapping values are not allowed in this context for red-planet.md
Error: unable to read frontmatter at filepos 100: EOF for rocket-ship-galileo.md
Error: unable to read frontmatter at filepos 96: EOF for good-to-great.md
Error: unable to read frontmatter at filepos 91: EOF for space-cadet.md
What the HECK is going on here and why am I having so much trouble with this supposedly simple beginners tutorial? How do I clean this up?
By the way, I am using Hugo v0.25.1 windows/amd64 on a Windows 10 64-bit computer.