This chapter covers:
- Organizing Pages in a Hugo website into sections, menus and Hugo taxonomies
- Bundling contents of a page into a Page Bundle
- Using Hugo’s built in and community provided shortcodes to get more features in markdown.
A website is not just a bundle of web pages scattered at random URL locations. The pages need to be discoverable, organized into meaningful sections and there needs to be a way to navigate to them for a reader to be successful. Content in most websites is laid out with a strategy, grouped together, tagged and navigation cues are present in pages for the reader to navigate to others.
In this chapter we will be playing the role of the editor of the Acme Corporation website. We will be looking into content organization and management as well as setting up content templates, configuration and markdown extensions (called shortcodes in Hugo) to be used in the website.
In the Acme Corporation website so far, we have had only one config file config.yaml
where we have been piling our configuration together. If we look at the Hugo documentation, we notice that there are many parameters that can be changed and this can get overwhelming very quickly. A single config file is bound to become a bottleneck.