7 Creating your own theme
This chapter covers
- Creating multiple layouts with shared base templates
- Using front matter cascades in Hugo
- Creating index and taxonomy pages to navigate through the website
- Converting content type to a theme
- Building content views to share content between templates
In chapter 6, we started moving away from the Eclectic theme and began to create the underpinnings for a new theme. We created a new content type called modern, which has custom template code. In this chapter, we will convert the modern content type to a complete theme (AcmeTheme). We will also focus on all types of content and how that fits together in a new theme as figure 7.1 illustrates.
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.