yam655

yam655

Build Websites with Hugo: hugo 0.86 not working with examples after Chapter 2

I bought the book to help familiarize myself with Hugo.

The examples in Chapter 1 worked fine.

I know it isn’t my Hugo installation, as I can run both official as well as theme-specific starters.

Starting in Chapter 2, the samples don’t work and I just get a blank page.

I thought, “I probably mistyped something.” So, I downloaded the source archive. But the source archive has the same problem.

I wondered, “Do some of the later examples work?” Since they were all in the archive, I didn’t need to wait until I got there in the book.

It turns out, some of them give different results. Most of them seem to do nothing – the same problem I was having – but at least two of them generate failure messages.

This is disappointing, to say the least.

First Post!

bphogan

bphogan

Author of Build Websites with Hugo (and 4 other titles)

Hi @yam655 - have you had a look at Build Websites with Hugo: Code in chapter two won't run - #5 by SnowyMountainWeb ?

Hugo templates seem to very aggressively hate comments, and so if you’re using the code from the code archives, it may not work. If you get a blank screen, it’s almost certainly that - a comment in the code. I’ve been trying to figure out a way to publish an updated zip file.

But also, does the site you’ve built work with the version of Hugo specified in the first chapter?

Let me know how I can help. In the meantime, I’ll go back through chapter 2 myself just to see if anything is up.

Where Next?

Popular Pragmatic Bookshelf topics Top

New
telemachus
Python Testing With Pytest - Chapter 2, warnings for “unregistered custom marks” While running the smoke tests in Chapter 2, I get these...
New
jeffmcompsci
Title: Design and Build Great Web APIs - typo “https://company-atk.herokuapp.com/2258ie4t68jv” (page 19, third bullet in URL list) Typo:...
New
jdufour
Hello! On page xix of the preface, it says there is a community forum "… for help if your’re stuck on one of the exercises in this book… ...
New
rmurray10127
Title: Intuitive Python: docker run… denied error (page 2) Attempted to run the docker command in both CLI and Powershell PS C:\Users\r...
New
brian-m-ops
#book-python-testing-with-pytest-second-edition Hi. Thanks for writing the book. I am just learning so this might just of been an issue ...
New
taguniversalmachine
Hi, I am getting an error I cannot figure out on my test. I have what I think is the exact code from the book, other than I changed “us...
New
Henrai
Hi, I’m working on the Chapter 8 of the book. After I add add the point_offset, I’m still able to see acne: In the image above, I re...
New
dtonhofer
@parrt In the context of Chapter 4.3, the grammar Java.g4, meant to parse Java 6 compilation units, no longer passes ANTLR (currently 4....
New
SlowburnAZ
Getting an error when installing the dependencies at the start of this chapter: could not compile dependency :exla, "mix compile" failed...
New

Other popular topics Top

Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
dasdom
No chair. I have a standing desk. This post was split into a dedicated thread from our thread about chairs :slight_smile:
New
New
AstonJ
Do the test and post your score :nerd_face: :keyboard: If possible, please add info such as the keyboard you’re using, the layout (Qw...
New
New
mafinar
This is going to be a long an frequently posted thread. While talking to a friend of mine who has taken data structure and algorithm cou...
New
First poster: bot
The overengineered Solution to my Pigeon Problem. TL;DR: I built a wifi-equipped water gun to shoot the pigeons on my balcony, controlle...
New
New
PragmaticBookshelf
Author Spotlight: VM Brasseur @vmbrasseur We have a treat for you today! We turn the spotlight onto Open Source as we sit down with V...
New
DevotionGeo
I have always used antique keyboards like Cherry MX 1800 or Cherry MX 8100 and almost always have modified the switches in some way, like...
New

Sub Categories: