appendix D. The Go template language
The Go template language is a language specifically designed to fill templates for the Go programming language. Hugo builds upon the Go template language and adds more variables and functions to provide additional functionality. This appendix provides an overview of the Go template language features, which form the building blocks of the website template.
The Hugo documentation provides a ready reference for all the possible variables and functions that exist in Hugo at https://gohugo.io/variables/ and https://gohugo.io/functions/, respectively. Note that this appendix’s code resources are present as a part of chapter 5 and chapter 6 resources for this book.
D.1 Basic usage
Accessing the Go template language ...
Get Hugo in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.