Menu

Documentation navigation

Code Blocks

Render readable fenced code with titles and filenames.

Typereference

The code block render hook keeps examples readable in static HTML and in print.

# Basic example

hugo server --source exampleSite --theme hugo-theme-symblix

# With metadata

[params.docs]
root = "docs"

The render hook supports a title and filename caption through fenced-code attributes:

exampleSite/hugo.tomlexampleSite/hugo.toml
[params.docs]
root = "docs"

# What is not here

On this page