Working with Static Sites by Raymond Camden & Brian Rinaldi

Working with Static Sites by Raymond Camden & Brian Rinaldi

Author:Raymond Camden & Brian Rinaldi
Language: eng
Format: epub
Publisher: O'Reilly Media, Inc.
Published: 2017-03-15T04:00:00+00:00


<div class="docs-content"> {{ range $name, $taxonomy := .Site.Taxonomies.categories }} <h2>{{ $name | title }}</h2> {{ range $taxonomy.Pages }} <h3 id="{{ .LinkTitle | urlize }}">{{ .Title }}</h3> {{ .Content }} <hr> {{ end }} {{ end }} </div>

Once you save this page, Hugo will automatically regenerate the site files and refresh the open browser window with your finished site (Figure 4-7).

Figure 4-7. The completed LOLCode documentation site

Clicking on any of the links in the navigation should now correctly scroll to the appropriate section of the page. You should also notice that code blocks are appropriately colored.

Congrats! You’re done with your first documentation site built with Hugo. The completed code for this sample can be found on the GitHub repository for this book.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.