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

brianokken
Many tasks_proj/tests directories exist in chapters 2, 3, 5 that have tests that use the custom markers smoke and get, which are not decl...
New
sdmoralesma
Title: Web Development with Clojure, Third Edition - migrations/create not working: p159 When I execute the command: user=> (create-...
New
leonW
I ran this command after installing the sample application: $ cards add do something --owner Brian And got a file not found error: Fil...
New
fynn
This is as much a suggestion as a question, as a note for others. Locally the SGP30 wasn’t available, so I ordered a SGP40. On page 53, ...
New
digitalbias
Title: Build a Weather Station with Elixir and Nerves: Problem connecting to Postgres with Grafana on (page 64) If you follow the defau...
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
creminology
Skimming ahead, much of the following is explained in Chapter 3, but new readers (like me!) will hit a roadblock in Chapter 2 with their ...
New
kolossal
Hi, I need some help, I’m new to rust and was learning through your book. but I got stuck at the last stage of distribution. Whenever I t...
New
gorkaio
root_layout: {PentoWeb.LayoutView, :root}, This results in the following following error: no “root” html template defined for PentoWeb...
New
mcpierce
@mfazio23 I’ve applied the changes from Chapter 5 of the book and everything builds correctly and runs. But, when I try to start a game,...
New

Other popular topics Top

PragmaticBookshelf
Rust is an exciting new programming language combining the power of C with memory safety, fearless concurrency, and productivity boosters...
New
AstonJ
This looks like a stunning keycap set :orange_heart: A LEGENDARY KEYBOARD LIVES ON When you bought an Apple Macintosh computer in the e...
New
dimitarvp
Small essay with thoughts on macOS vs. Linux: I know @Exadra37 is just waiting around the corner to scream at me “I TOLD YOU SO!!!” but I...
New
gagan7995
API 4 Path: /user/following/ Method: GET Description: Returns the list of all names of people whom the user follows Response [ { ...
New
foxtrottwist
A few weeks ago I started using Warp a terminal written in rust. Though in it’s current state of development there are a few caveats (tab...
New
PragmaticBookshelf
Rails 7 completely redefines what it means to produce fantastic user experiences and provides a way to achieve all the benefits of single...
New
PragmaticBookshelf
Build efficient applications that exploit the unique benefits of a pure functional language, learning from an engineer who uses Haskell t...
New
PragmaticBookshelf
Author Spotlight: Sophie DeBenedetto @SophieDeBenedetto The days of the traditional request-response web application are long gone, b...
New
PragmaticBookshelf
Develop, deploy, and debug BEAM applications using BEAMOps: a new paradigm that focuses on scalability, fault tolerance, and owning each ...
New
CommunityNews
A Brief Review of the Minisforum V3 AMD Tablet. Update: I have created an awesome-minisforum-v3 GitHub repository to list information fo...
New

Sub Categories: