This chapter covers:
- Organizing the template of a web page for better understanding and reuse
- Using Hugo base layouts and partials to structure code and improve compilation speeds
- Understanding Hugo content types for multiple designs
- Using Hugo pipes for handling assets
- Using templates bundled with Hugo
With the Go Template Language in Hugo we can build templates for markup controlled HTML pages in as much detail as needed. In this chapter we enable having multiple types of pages sharing template code and snippets between them. We will also be looking at how Hugo can help with the JavaScript, Images and CSS with Hugo Pipes. We will be building our foundation to move off the Eclectic theme and have more control over the entire website rendering using our own template code.