A cool blog theme
The config below is in .toml
for consistency.
Sitewide author configuration happens in config.yaml/toml/json
. The front
matter overrides site configuration.
The author name on a post(s).
[Author]
name = "John Smith"
The username on a posts(s).
[Author]
name = "John Smith"
username = "johnsmith"
The author's URL on a post(s).
[Author]
name = "John Smith"
username = "johnsmith"
url = "https://example.com"
A short message about the author. Can be occupation, biography, etc.
[Author]
name = "John Smith"
username = "johnsmith"
url = "https://example.com"
bio = "Author"
The description informs users about the content and should be a short, relevant summary of the post/site. It can be in the front matter or in the site configuration.
[params]
description = "John Smith's Blog"
The footer is displayed at the bottom of every page. It defaults to
this is a footer
. It can only be defined at the site level.
[params]
footer = "© 2021 John Smith"
Custom JavaScript modules can be included for additional interactivity.
[params]
script = "/scripts/script.js"
Hugo can automatically generate a table of contents, and users can configure options in the sitewide configuration.
[markup]
[markup.tableOfContents]
endLevel = 6
ordered = false
startLevel = 2
To insert the table of contents, users use this shortcode:
{{< table_of_contents >}}