5 Custom pages and customized content with the Go template language
This chapter covers
- Customizing pages and shortcodes
- Rendering content and accessing variables and functions in the Go template language
- Accessing Hugo’s configuration and front matter in code
- Reading from the filesystem
- Creating reusable page templates called archetypes
One strength of Hugo is its clear separation of concerns between content (Markdown) and presentation (HTML/CSS/JavaScript). When we create content, we rarely have to deal with HTML. Team members who are not well versed in HTML or CSS can be successful with Hugo as a content management system using features we’ve discussed so far in this book. However, we can unlock a lot more power by digging deeper into layouts ...
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.