0%

Build and deploy a live website in just 30 minutes using Hugo. The Hugo engine lets you rapidly deliver static sites that are low maintenance, high performance, and feature rich.

In Hugo in Action you will learn:

  • Building web pages with Hugo and Jamstack
  • Creating content using Markdown
  • Content management with Hugo
  • Designing new Hugo themes
  • Using the Go template language
  • Managing dependencies with Hugo modules
  • Accessing APIs with Jamstack
  • Adding a shopping cart using JavaScript
  • Content tagging with markup

Sometimes, simple is better. Static websites—sites with fixed content—are easier to create and maintain, and inherently more secure than dynamic pages. Hugo in Action is a hands-on guide to using the Hugo static site engine to render these websites in milliseconds. Working with a complete example website and source code samples, you’ll learn how to build and host a site that will wow users and stay stable without a third-party server. Full coverage of the Jamstack (Javascript, APIs, Markdown) shows how easy it is to add complex features to super-simple sites, including eCommerce shopping carts, dynamic forms, and multilingual options.

About the Technology
Because they load pre-built pages, static websites are simple, secure, and incredibly fast. With the Hugo static site generator you can build and render a website in seconds without the grind of hand coding the pages. Hugo takes a directory of content and templates and renders it as a full HTML and CSS website—perfect for blogs, documentation, and other sites that don’t require real-time updates.

About the Book
In Hugo in Action you’ll learn step-by-step how to build efficient, low-maintenance static web sites. You’ll use Hugo as a CMS and web development environment, create custom pages, and design your own Hugo themes. And you won’t stop there! Moving beyond the basics, you’ll incorporate the Jamstack model to add capabilities like eCommerce and your own APIs. The result: rich websites that are flexible and incredibly stable.

What's Inside
  • Building web pages with Hugo and Jamstack
  • Using the Go template language
  • Managing dependencies with Hugo modules
  • Content tagging with markup


About the Reader
For web developers with a basic knowledge of JavaScript.

About the Author
Atishay Jain is a Senior Computer Scientist at Adobe. He has developed web-based software used by millions of Adobe Creative Cloud customers.

Quotes
Straightforward and approachable…all readers will benefit from the breadth and context that this book provides.
- From the Foreword by Steve Francia, Creator of Hugo

Probably the best book about Hugo available. An invaluable resource for learning how to develop static sites with Hugo.
- Theofanis Despoudis, WP Engine

Very well written…introduces concepts and real-life workflows for building Jamstack-based websites with Hugo.
- Milorad Imbra, FEVO

If you want to learn Hugo beyond the basics, then this is the book for you!
- Jeff Smith, TJX

Table of Contents

  1. inside front cover
  2. Hugo in Action
  3. Copyright
  4. dedication
  5. contents
  6. front matter
  7. Part 1 Static Hugo websites: Loading fast, building to last
  8. 1 The Jamstack and Hugo
  9. 2 Live in 30 minutes: You now have a website
  10. 3 Using markup for content
  11. 4 Content management with Hugo
  12. 5 Custom pages and customized content with the Go template language
  13. 6 Structuring web pages
  14. 7 Creating your own theme
  15. 8 Hugo Modules: Plugins for everybody
  16. Part 2 Expanding with the Jamstack: Dynamic outside, static inside
  17. 9 Accessing APIs to enhance functionality
  18. 10 The power of JavaScript
  19. 11 Breaking barriers with custom APIs and webhooks
  20. 12 Adding e-commerce capabilities using the Jamstack
  21. 13 Wrapping it up
  22. appendix A. Getting up and running with Hugo
  23. appendix B. TOML and JSON for metadata
  24. appendix C. A GUI-based admin section with Netlify CMS
  25. appendix D. The Go template language
  26. appendix E. Answers to exercises
  27. index
  28. inside back cover
3.17.174.156