Build Websites with Hugo (Pragmatic Bookshelf)

PragmaticBookshelf
Database-driven sites bring complexity you might not need, but building a site by hand is too much work. Hugo is a static site generator and web development framework that creates content sites quickly without the overhead or dependencies of a dynamic web framework.

Brian P. Hogan (@bphogan)

edited by Tammy Coron @Paradox927

Database-driven sites bring complexity you might not need, but building a site by hand is too much work. Hugo is a static site generator and web development framework that creates content sites quickly without the overhead or dependencies of a dynamic web framework. With Hugo, you use HTML templates and Markdown to build static sites you can host anywhere, letting you use the skills you already have.

Develop your own theme using standard HTML and CSS, using Hugo’s powerful templating features to organize your site’s components. Create your site’s content with HTML or Markdown and use Hugo’s content templating features to build new content quickly. Build a fully-featured blog with archive pages, tagging, and pagination, and integrate an external commenting system to provide interactivity. Use data from front-matter, site-wide configuration, and external JSON sources to add content, and generate JSON others can use. Integrate JavaScript with your site to create a search engine. Get Hugo working with Webpack so you can leverage the wider web development ecosystem, and explore ways to publish your site to various services. Finally, learn how you can move your existing content site to Hugo.

Dive in and build your next site with Hugo!


  • Full details: Search
  • View this book’s portal and details on how to post errata and suggestions here.

Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “devtalk.com" at checkout :+1:

3 1151 0

Latest Threads About This Book Top

edskinner
@bphogan In the list.html at the bottom of the page, there are two sections. The outer one sets class=“projects” but there is no CSS fo...
0 449 0
New
edskinner
Add a note in the download .zip file with errata, and include the fact that Hugo silently produces an empty output if it encounters an HT...
0 364 0
New
edskinner
HTML-style comments (and Hugo-style, as well) in any of the .html input files (index.html, layouts//*, etc.) cause Hugo to silently gener...
0 481 1
New
gerbreown
It would be VERY helpful if an INDEX was included at the end.
0 591 4
New
JRombouts
The “Joe asks: Does Hugo Support Syntax Highlighting for Code” has a formatting mistake: $ hugo gen chromastyles --style=github >...
0 750 0
New
eatrero
This suggestion is in regards to page 114 in the pdf, for the chapter Deploying the Site. After the editing package.json, the following g...
0 824 0
New
curranjohn
On page 66 of “Build Websites with Hugo” the .ByDate.Reverse doesn’t seem to have any impact on the project page. I download the source c...
0 743 0
New
jottinger
Title: Build Websites with Hugo #book-build-websites-with-hugo Source code for search is incomplete: search/portfolio/static has no js ...
1 878 1
New
PragmaticBookshelf
A Hero’s Journey with Brian P. Hogan @bphogan Brian P. Hogan, author of Build Websites with Hugo, discusses his journey to becom...
24 2425 7
New
yam655
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...
0 1151 3
New

Most Active This Week Top

Most Active This Month Top

Most Active This Year Top

yam655
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...
0 1151 3
New

Most Active Last Three Years Top

gerbreown
It would be VERY helpful if an INDEX was included at the end.
0 591 4
New
chriswadams
I’m working through Mr. Hogan’s book, and the code has been running fine, until I got to the section “Using Content Blocks and Partials” ...
1 1212 6
New
edskinner
HTML-style comments (and Hugo-style, as well) in any of the .html input files (index.html, layouts//*, etc.) cause Hugo to silently gener...
0 481 1
New
edskinner
@bphogan In the list.html at the bottom of the page, there are two sections. The outer one sets class=“projects” but there is no CSS fo...
0 449 0
New
edskinner
Add a note in the download .zip file with errata, and include the fact that Hugo silently produces an empty output if it encounters an HT...
0 364 0
New

Most Active Over Three Years Top

PragmaticBookshelf
A Hero’s Journey with Brian P. Hogan @bphogan Brian P. Hogan, author of Build Websites with Hugo, discusses his journey to becom...
24 2425 7
New
PragmaticBookshelf
Database-driven sites bring complexity you might not need, but building a site by hand is too much work. Hugo is a static site generator ...
3 1153 0
New
ianwillie
Hello Brian, I have some problems with running the code in your book. I like the style of the book very much and I have learnt a lot as...
0 1497 3
New
kamimura
First, rename … to themes/basic/assets/css.style.scss → First, rename … to themes/basic/assets/css/style.scss
3 1064 0
New
dmitry-kabanov
In the last paragraph on p. 18 it refers to the file themes/basic/layouts/_default/par- tials/footer.html, however, _default should be ...
0 947 0
New
jottinger
Title: Build Websites with Hugo #book-build-websites-with-hugo Source code for search is incomplete: search/portfolio/static has no js ...
1 878 1
New
eatrero
This suggestion is in regards to page 114 in the pdf, for the chapter Deploying the Site. After the editing package.json, the following g...
0 824 0
New
JRombouts
The “Joe asks: Does Hugo Support Syntax Highlighting for Code” has a formatting mistake: $ hugo gen chromastyles --style=github >...
0 750 0
New
curranjohn
On page 66 of “Build Websites with Hugo” the .ByDate.Reverse doesn’t seem to have any impact on the project page. I download the source c...
0 743 0
New
Carpintonto
Incorporate the social media links into your site’s footer. Include the code in a partial. I’m stuck and I think it’s a scoping issue. ...
0 735 1
New

Get money off!

The Pragmatic Bookshelf

35% off any eBook

Simply use coupon code "devtalk.com" at checkout. See full details here.