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 websitessites with fixed contentare 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, youll 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 websiteperfect for blogs, documentation, and other sites that dont require real-time updates.
About the book In Hugo in Action youll learn step-by-step how to build efficient, low-maintenance static web sites. Youll use Hugo as a CMS and web development environment, create custom pages, and design your own Hugo themes. And you wont stop there! Moving beyond the basics, youll 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.
Table of Contents PART 1 STATIC HUGO WEBSITES: LOADING FAST, BUILDING TO LAST 1 The Jamstack and Hugo 2 Live in 30 minutes: You now have a website 3 Using markup for content 4 Content management with Hugo 5 Custom pages and customized content with the Go template language 6 Structuring web pages 7 Creating your own theme 8 Hugo Modules: Plugins for everybody PART 2 EXPANDING WITH THE JAMSTACK: DYNAMIC OUTSIDE, STATIC INSIDE 9 Accessing APIs to enhance functionality 10 The power of JavaScript 11 Breaking barriers with custom APIs and webhooks 12 Adding e-commerce capabilities using the Jamstack 13 Wrapping it up
"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--This text refers to the paperback edition.
From the Author
Hugo has been constantly ranked amongst the best static site builders in the last five years. It can compile a website in seconds and provide a huge and powerful standard library for writing templates. It has a strong community focused on building websites with high quality and great performance. I have crafted my personal website using a wide set of technologies from hand coded PHP to a WordPress instance. Then I migrated it to Jekyll and finally to Hugo. With Hugo, I have found a fine balance of features and performance. It is a framework that can help you focus on the joys of building websites. You will find yourself free from the ongoing frustrations of waiting for the live reload system to start or of updating and fixing security issues in the hundreds of plugins that your website relies on. With the core of the website standing on a stable framework, you can focus your efforts on utilizing the powers of Javascript and APIs for enhancing rather than maintaining your website. This book navigates through the various hats a person needs to don to setup a modern website. In the first few chapters the readers will play the role of a content creator, an editor and a manager of an active Hugo based website. Through the middle of the book we will delve into theme creation, playing the role of the web developer to setup a beautiful website offering great performance. Towards the later half of the book, we will play the role of an integrator, a backend developer and an architect to setup a system which involves contacting first and third party services to enable server controller dynamic functionality in a primarily static website. This book navigates through the entire Jamstack starting with the Markup based pieces that form the core of the website and developing onto APIs and JavaScript. The Jamstack has been the best stack for use in small websites including those belonging to individuals and small businesses. Cheap hosting along with freedom from day to day DevOps work make this ideal for websites that are ancillary to one's business. Even web based businesses are recognizing the power of this approach with more and more companies deciding to use markdown for the static portions of their website with the dynamic portions done using JavaScript talking over a clean API.--This text refers to the paperback edition.
About the Author
Static websitessites with fixed contentare the simplest type of web pages. In addition to being easier to create and maintain, theyre inherently more secure that dynamic pages. And with the Hugo static site engine, you can render them in milliseconds.
Hugo in Action is a step-by-step guide to using Hugo to create static websites that really show off the advantages of simplicity. Working with a complete example website and source code samples, youll learn how to build and host a low-maintenance, high-performance site that will wow your users and stay stable without relying on a third-party server.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.--This text refers to the paperback edition.