Skip to content

Configuration

Find every site parameter that the theme reads, with its type, default, description, and related guide.

Every site-wide setting OINK reads lives in hugo.yml and appears in a table on this page with its type, its default and a link to the guide that shows it in use. The defaults are conservative: local search, image zoom, comments, page feedback and the light/dark menu stay off until you turn them on, so your configuration only needs the keys you want to change. There is no master switch and no params.oink.* namespace, so a key that is not on this page does nothing. Settings for a single page are in Page parameters.

An empty Default cell means the theme has no default and the feature stays off until you set the key. Each group has its own anchor, such as /docs/customize/config/#sidebar.

The layers of hugo.yml

Configuration keys come in four layers, and the layer tells you where a key’s behavior is documented:

Layer Examples Who defines it
Hugo’s own top-level keys baseURL title languages markup outputs taxonomies module Hugo itself. See gohugo.io for behavior
Top-level params logo offline_search github_repo version page_width comments Site-level options the theme reads
params.ui.* navbar_enabled sidebar_width_min typography pager_types The shell, navigation and reading interface
params.<runtime> mermaid plantuml drawio markmap Each content runtime’s own switch and endpoint

A working site needs only the first two layers, including the Goldmark settings that OINK’s Markdown components depend on:

hugo.yml
title: Product Docs
baseURL: https://docs.example.com/
defaultContentLanguage: en
enableGitInfo: true

markup:
  goldmark:
    renderer:
      unsafe: true
    parser:
      attribute:
        block: true
      wrapStandAloneImageWithinParagraph: false
  highlight:
    noClasses: false

module:
  imports:
    - path: github.com/pgsty/oink

params:
  offline_search: true
  github_repo: https://github.com/example/product-docs

When a value is wrong

OINK checks every value it reads. When it cannot use one, such as a misspelled choice, a string where a boolean belongs, or a color that is not hex, it prints a warning that names the key, the value and the fallback, then continues with the documented default:

WARN invalid params.ui.typography "solarized" (allowed: technical | system) -- using "technical"

The site keeps building, so a typo under hugo server changes one setting instead of taking every page down. The same applies to front matter overrides, where the warning also names the page. Read the warnings after each change, because a warning usually means a feature you expected is running on its default or is switched off; Verifying a configuration change lists the common ones. For the same reason, leave Hugo’s --panicOnWarning off: OINK reports fallbacks as warnings on purpose, and the flag would turn each one into a failed build.

Features that depend on an outside service stay off until their configuration is complete. Draw.io without drawio_server, maps without tiles and attribution, Algolia without all three keys and giscus without its four required values each warn and render nothing; the theme never substitutes a public service of its own choosing. Upstream attribution that is missing required fields also warns and is left out entirely, because a partial credit line would look complete.

One check keeps your value. If theme_color reads below 4.5:1, the AA contrast for body text, against the theme’s canvas, the color still ships, since a custom canvas or a brand rule may justify it. The warning prints an ignoreLogs id you can add to silence it. Only a value that is not a hex color is dropped, leaving the default palette.

Hugo itself can still stop a build when a content reference resolves to no page.

Page-level override precedence

Most parameters can be overridden for one page or a whole section. Hugo’s .Param lookup takes the first value it finds, in this order:

  1. The page’s own front matter;
  2. cascade in an ancestor section’s _index.md (the nearest wins);
  3. Site params.

Drop the ui. prefix in front matter. The site key params.ui.reading_time becomes reading_time on a page. The theme silently ignores a ui: block in front matter, so when an override seems to have no effect, check the key name against Page parameters first.

content/docs/wide-reference.md
---
title: Wide reference
page_width: wide
navbar_enabled: false
footer_style: slim
reading_time: false
---

A cascade sets a whole subtree at once:

content/docs/_index.md
---
title: Docs
cascade:
  type: docs
  footer_style: slim
  feedback: true
---

Override where the content genuinely differs. A page that rebuilds its own visual system out of overrides tends to drift out of step with the rest of the site after a theme upgrade.

The three Goldmark prerequisites

Hugo does not merge a theme module’s markup settings into the site, so these lines belong in your own hugo.yml:

hugo.yml
markup:
  goldmark:
    parser:
      # block images may carry an attribute line ({caption=…}, numbered figures)
      wrapStandAloneImageWithinParagraph: false
      attribute:
        block: true
    renderer:
      # HTML emitted by `{{% … %}}` shortcodes has to survive
      unsafe: true
    extensions:
      passthrough:
        enable: true
        delimiters:
          block: [['\[', '\]'], ['$$', '$$']]
          inline: [['\(', '\)']]
  highlight:
    # class-based highlighting, so light and dark can each have a palette
    noClasses: false
  tableOfContents:
    endLevel: 4

The first three settings are the prerequisites every OINK site needs; the rest switch on math, theme-aware highlighting and a deeper outline. Each one shows a visible symptom when it is missing:

Setting Without it
parser.attribute.block: true Attribute lines such as {.fields}, {.steps} and {caption=…} print as literal text
parser.wrapStandAloneImageWithinParagraph: false A standalone image cannot take an attribute line, so captions and numbered figures do not work
renderer.unsafe: true Hugo escapes the HTML that steps, cards and {{% … %}} shortcodes produce
extensions.passthrough \(x\) and $$…$$ stay as text instead of becoming formulas
highlight.noClasses: false Code is colored with inline styles, so it cannot switch palette with dark mode
tableOfContents.endLevel: 4 Optional: without it the outline stops at ### headings

renderer.unsafe: true also lets raw HTML in Markdown through. That suits a team writing its own documentation, but it is not a filter: if the site publishes contributions from untrusted authors, review them before they merge.

Site identity and brand

Hugo’s own keys name the site and turn on Git metadata:

title , string
Site name, shown in the navbar, <title> and the footer
baseURL , string
The production domain. Include the path segment for a subpath deployment
enableGitInfo , boolean , defaultfalse
Needed for “last modified” dates and commit information
enableRobotsTXT , boolean , defaultfalse
Generates robots.txt
enableEmoji , boolean , defaultfalse
Allows :smile: emoji shortcodes

The theme’s keys add the logo, footer text and accent color:

params.wordmark , string
Horizontal wordmark shown beside the logo in place of the site name. Below 992 px the navbar shows the logo alone
params.description , string
Site description, used as the meta description when a page has none
params.author , string or map
The RSS author. A map takes name and email
params.ui.theme_color , string
#rgb or #rrggbb accent for the shell’s colored backgrounds. Prose links and inline code keep their own colors. See Brand and appearance
params.ui.theme_color_dark , string , defaultderived
The dark-mode accent. When omitted, the theme lightens theme_color until it meets AA contrast on the dark canvas

Favicons have no parameter: the theme picks up the conventional file names in static/ (favicon.ico, favicon.svg, favicon-NxN.png, apple-touch-icon.png, apple-touch-icon-NxN.png). See Brand and appearance.

Shell types and section roots

The reading shell follows a page’s type, not its folder, so documentation can live in any directory as long as a cascade gives it type: docs.

params.ui.shell_types , list , default[docs, book, blog, swagger, expo]
Types that get the reading shell with a sidebar. See Layouts and page types
params.ui.docs_section , string , defaultdocs
Folder name of the documentation section, used only to resolve navigation
params.ui.blog_section , string , defaultblog
Folder name of the blog section
params.ui.docs_sidebar_root , enum , defaultsection
Where a docs sidebar starts: section at the documentation section, home at the site home
params.ui.sidebar_root_enabled , boolean , defaulttrue
Lets a subsection become its own sidebar tree with sidebar_root_for: self
params.ui.sidebar_root_menu , boolean , defaulttrue
Section switcher above the sidebar. With a single entry it becomes a plain link
params.ui.section_index , enum , defaultlist
How a section index lists its children: list or cards. Overridable per section
params.ui.section_index_columns , integer , default2
Columns when section_index: cards

Expo albums

Site-wide defaults for Expo albums. A page’s own expo block replaces this block as a whole and takes built-in defaults for the fields it leaves out, and a reader’s saved mode and size override both. The complete rules are in Expo defaults.

params.ui.expo.images , string , defaultimages/*
Pattern that selects the image resources in the page bundle
params.ui.expo.mode , enum , defaultwall
wall, cards or seamless
params.ui.expo.size , integer , default240
Target tile size, from 160 to 360 CSS pixels

Blog

These keys shape the section named by params.ui.blog_section, and each can be overridden for one section through front matter or a cascade on the blog root. The blog layout guide compares the four index layouts side by side.

params.ui.blog_index , enum , defaultlist
list horizontal entries, cards image cards, table compact rows, gallery linked covers. All are newest first; table always lists the whole section on one page
params.ui.blog_index_columns , integer , default3
Columns for blog_index: cards from the xl breakpoint up. Between md and xl there are always two columns, below md one
params.ui.blog_index_size , integer , default12
Posts per page for list, cards and gallery, and for all four layouts when blog_index_toggle is on. A standalone table ignores it
params.ui.blog_index_toggle , boolean , defaultfalse
Publishes all four layouts and lets readers cycle list → cards → table → gallery, remembering their choice. When false, only the configured layout is published
params.ui.toc_style , enum , defaultfixed
Right-rail presentation: fixed pins a panel to the viewport; flow uses a wider panel that starts level with the article and pins only once you scroll
params.ui.toc_taxonomies , boolean , defaulttrue
Taxonomy term clouds in the right rail. A rail with neither an outline nor clouds is not rendered

A page or cascade blog_gallery block replaces the whole site block. Fields it leaves out take wall and 240. A reader’s saved arrangement and size override the author’s defaults and are kept separately from Expo preferences. See Gallery.

Authors and series are taxonomies rather than parameters; see Taxonomies and Writing a blog.

The navbar, the footer and the page-action menu at the right end of the breadcrumb row:

params.ui.navbar_enabled , boolean , defaulttrue
Whether the site navbar renders. A page overrides it with a top-level navbar_enabled. See Navigation and menus
params.ui.navbar_autohide , boolean , defaultfalse
The navbar slides up out of view and returns when the pointer reaches its wake zone at the top. Inactive below 768px and on coarse pointers
params.ui.dark_mode , boolean or map , defaultfalse
true turns on the dark palette and the light/dark control. { show_menu: true } implies enable: true; { enable: true, show_menu: false } keeps the palette without showing the menu control
params.ui.breadcrumb , boolean , defaultper-shell (true; false in blog)
Breadcrumbs above the title. A top-level section never shows a one-level breadcrumb
params.ui.page_context_menu.enable , boolean , defaulttrue
The page-action split button at the right end of the breadcrumb row
params.ui.github_stars , string or number
Star count on the navbar GitHub mark. It is a constant you write; the page makes no request
params.ui.alt_site , map
Link to a sibling site in a single-language footer. Needs both label and an absolute http(s) url

The fat footer’s columns come from data/footer/<language>.yaml, not from a parameter; see Navigation and menus.

How the left navigation tree renders. Its structure comes from the content/ folders (Organizing content), and Layouts and page types shows these keys in use.

params.ui.sidebar_menu_compact , boolean , defaulttrue
Expands only the current branch and its neighbours
params.ui.sidebar_menu_foldable , boolean , defaulttrue
Lets the reader expand and collapse sections
params.ui.sidebar_menu_truncate , integer , default2000
Most entries rendered in one section; the rest are cut
params.ui.sidebar_cache_limit , integer , default500
From this page count on, pages that share a language, sidebar root and effective settings reuse one copy of the navigation markup, and the browser marks the active entry
params.ui.sidebar_width_min , integer , default220
Narrowest width, in pixels, the reader can drag the sidebar to on the desktop
params.ui.sidebar_width_max , integer , default480
Widest width, in pixels, for drag-resizing
params.ui.sidebar_item_overflow , enum , defaultellipsis
A long title is cut with ellipsis or wraps with wrap
params.ui.sidebar_icon_policy , enum , defaultall
Icon density: all everywhere, groups only on the root and on entries with children, none nowhere
params.ui.sidebar_expand_levels , integer , default2
Tree levels expanded by default
params.ui.sidebar_headings , boolean or integer , defaultfalse
type: book only: shows the current page’s headings as a branch under its sidebar row. Takes an integer from 2 to 4; true means 2
params.ui.sidebar_enabled , boolean , defaulttrue
The left sidebar. Usually turned off per page rather than for the whole site
params.ui.taxonomy_icons , map , defaultbuilt-in
Icons per taxonomy, keyed by plural. Each taxonomy has two: taxonomy for the whole classification, such as a right-rail cloud heading, and term for one term’s badge. A string such as tags: fa-solid fa-tags sets both; a map with taxonomy and term sets them separately, and a key it leaves out keeps the built-in. Built-in pairs cover tags, categories, modules, authors and series; any other taxonomy uses a generic shapes icon

Table of contents

Hugo decides which heading levels the right-hand outline collects; the theme only controls how it follows your reading. Hide the outline on one page with notoc: true (Page parameters).

markup.tableOfContents.startLevel , integer , default2
Hugo’s own: the highest heading level collected
markup.tableOfContents.endLevel , integer , default3
Hugo’s own: the lowest heading level collected
params.ui.scroll_spy , boolean , defaultfalse
No effect: the outline always highlights the current heading. Safe to delete from older configurations

Pager and page end

The blocks at the end of a page always come in the same order: share, feedback, page information, pager, comments. Each has its own switch. Backlinks sit in the right rail beside the outline.

params.ui.share , list , default[]
Share targets at the page end, in the order listed, chosen from x bluesky mastodon facebook linkedin reddit hackernews telegram whatsapp line pinterest weibo chatgpt claude email copy. An empty list hides the bar. Each target is a plain link, with no SDK, iframe, third-party script or share count. An unknown target warns and is dropped. See Writing a blog
params.ui.pager_types , list , default[docs, book, blog]
Types that show previous and next links. Turn them off on one page with pager: false. An unknown type warns and is dropped
params.ui.annotation , boolean , defaulttrue
The “last modified” and provenance block at the end of the body. Upstream attribution comes from the page’s upstream_link keys; see Page parameters
params.ui.compare , boolean , defaultfalse
Duo View: two panes side by side on Docs, Book and blog pages that have an HTML translation on the same site. A language can set it to false to opt out. See Duo view
params.ui.translation_notice , language code or false , defaultfalse
The language code of the authoritative version, so that a translated page shows a line pointing back to it. A page opts out with translation_notice: false
params.ui.reading_time , boolean , defaultfalse
Reading time under the page title
params.ui.book_draft_banner , boolean , defaultfalse
A banner at the top of a draft Book page

Local search is off by default. Turning it on also brings up the command palette, which opens from the navbar magnifier, Cmd/Ctrl with K, / and \.

params.offline_search_on_serve , boolean , defaulttrue
Builds the index under hugo server too, so the preview searches like production. On a very large site, false speeds up local rebuilds
params.offline_search_index , enum , defaultcontent
How much of each page is indexed, each level adding to the one before: title, heading, summary, content
params.offline_search_summary_length , integer , default70
Length, in characters, of the excerpt stored for each page; a result shows it when no passage matches
params.offline_search_max_results , integer , default10
Most page results one search returns
params.ui.command_palette.commands , list , default[]
Your own palette commands, each with either a url or a built-in action. See Command palette
params.gcs_engine_id , string
A Google Programmable Search engine ID. Searches then go to Google
params.search.algolia , map
Algolia DocSearch. appId, apiKey and indexName are all required

A custom command takes only seven keys: id, title, description, icon, keywords, url and action. The id must match ^[a-z][a-z0-9_-]*$ and must not repeat a built-in action ID. Put per-language titles under languages.<lang>.params.ui.command_palette.commands.

Keyboard

params.ui.keyboard_nav , boolean , defaulttrue
Twenty-nine single-key shortcuts for navigation, page actions and the view, plus the browsing history and the reader’s column width. With false, the runtime is left out of the page, so nothing is bound, recorded or restored. See Keyboard navigation

Image zoom

params.ui.image_zoom , boolean , defaultfalse
Lets body images open full size. A page overrides it with image_zoom in front matter

Images explains which images can be zoomed.

Typography

The visual preset, the fonts and the page widths:

params.ui.preset , enum , defaultpaper
Site-wide look: paper or slate, or the explicit experiments github, ink, news and terminal
params.ui.preset_menu , boolean or list , defaultfalse
true lets readers choose Paper, Slate or the site default. A list names the presets offered, may include the experiments, and must include the site default. Independent of dark_mode
params.ui.typography , enum , defaulttechnical
technical uses the selected preset’s bundled fonts (Paper: Plex Sans; Slate: Inter); system uses the platform font stack and requests no brand font
params.ui.fonts , map
Font-family names for the ui, body, heading, code, display, meta, brand and print roles. The theme checks the names but loads no font files. End each list with a generic family
params.page_width , enum , defaultnormal
Overall shell width: normal, wide, full. Overridable per page
params.reading_width , enum , defaultnormal
Body text width on Book pages: slim, normal, wide. The shell is unaffected

params.ui.fonts suits faces that are already on the reader’s system or that the site declares with @font-face. To ship font files with the site or change finer typography, use the project stylesheet; see Brand and appearance.

Comments and feedback

Comments use giscus, which keeps each page’s discussion in a GitHub repository; page feedback is two buttons with no backend of its own.

params.comments.enable , boolean , defaultfalse
Site-wide comment switch. A page overrides it with comments in front matter. See Comments
params.comments.type , string , defaultgiscus
Only giscus renders today
params.comments.giscus.repo , string
The GitHub repository that holds the discussions; required
params.comments.giscus.repoId , string
The repository ID; required
params.comments.giscus.category , string
The discussion category name; required
params.comments.giscus.categoryId , string
The discussion category ID; required
params.comments.giscus.mapping , string , defaultpathname
How pages map to discussions
params.comments.giscus.term , string
The discussion title or number when mapping is specific or number. Omitted when unset
params.comments.giscus.strict , string , default0
Strict title matching
params.comments.giscus.reactionsEnabled , string , default1
Shows reactions on the main post
params.comments.giscus.emitMetadata , string , default0
Sends discussion metadata to the parent page
params.comments.giscus.inputPosition , string , defaulttop
Whether the input box sits above or below the comments
params.comments.giscus.theme , string , defaultauto
The giscus theme. auto follows the site’s light/dark state
params.comments.giscus.lightTheme , string , defaultOINK palette
giscus theme name or custom CSS URL for light mode. By default, OINK’s own stylesheet for the active preset, so comments match the page
params.comments.giscus.darkTheme , string , defaultOINK palette
giscus theme name or custom CSS URL for dark mode. By default, OINK’s own stylesheet for the active preset
params.comments.giscus.loading , string , defaultlazy
lazy requests the giscus script only when the reader nears the comments, except on return from GitHub sign-in; eager requests it at once
params.comments.giscus.lang , string , defaultderived from the site language
The giscus interface language. When unset, Chinese sites resolve to zh-CN, zh-TW or zh-HK and other languages use their base code; a language giscus does not support falls back to en
params.comments.giscus.ariaLabel , string , defaulttranslated
The comment container’s aria-label. The default is “Comments” in the page’s language
params.comments.giscus.errorMessage , string , defaulttranslated
Text shown when loading fails. The default is “Comments could not be loaded.” in the page’s language
params.ui.feedback.enable , boolean , defaultfalse
“Was this page helpful?” buttons at the page end. There is no backend; when gtag is present, each answer is recorded as a structured event
params.ui.feedback.reasons , boolean , defaulttrue
Offers four optional reasons after “no”

Without all four required giscus values, the page has no comment section. Comments shows where to find them.

Repository links and page information

Links from each page back to its source, and the information block at its end:

params.github_repo , string
URL of the repository that holds the content. Drives “Edit this page”, “View edit history”, “Create child page” and “Create docs issue”. See Repository links and page info
params.github_project_repo , string , defaultgithub_repo
URL of the product repository, for “Create project issue” and the navbar GitHub entry
params.github_branch , string , defaultmain
The branch that edit links point at
params.github_subdir , string
The content site’s subdirectory inside a monorepo
params.path_base_for_github_subdir , string or map
Rewrites source paths (normalized to /) before they become repository links. A map takes from and to. Content mounted from outside the repository needs an explicit mapping to a repository-relative path. See repository links
params.github_url , — , default—
Removed and ignored. Use params.github_repo
params.ui.lastmod_commit , enum , defaultsubject
What follows “last modified”: subject the commit subject, hash the short hash, none nothing
params.images , string array , default—
Site-wide social card: supplies og:image for pages without their own image. Metadata only; never shown as a list thumbnail
params.upstream_source , string , default—
Default data/upstreams record for pages that declare upstream_link. A page’s front matter can override it
params.upstream_modified , boolean , defaultfalse
Site default for whether attributed material has been adapted. A page can override it. Nothing renders without upstream_link

Content runtimes

Mermaid, KaTeX, ECharts, Infographic, Asciinema, Swagger UI and Redoc load by themselves on the pages that use them, and only in HTML output, so they have no switch. The features below need one, mostly because they talk to a service you choose. PlantUML renders in the reader’s browser unless you set svg_image_url, which hands rendering to a server; PlantUML compares the two modes.

params.markmap , boolean , defaultfalse
Turns on the mind-map fence site-wide. See Markmap
params.mermaid , map
Configuration passed to mermaid.initialize(). Keys are lowercase. Dark mode overrides theme automatically
params.plantuml , boolean or map , defaultdisabled
true turns on local rendering; false turns off all PlantUML rendering
params.plantuml.enable , boolean , defaultfalse
Turns on local PlantUML rendering. See PlantUML
params.plantuml.svg_image_url , string
Optional PlantUML server endpoint. Without it, diagrams render in the browser
params.plantuml.svg , boolean , defaultfalse
Server mode only: inline SVG instead of an <img>
params.drawio.enable , boolean , defaultfalse
Adds an edit button to .drawio.svg images. See Draw.io
params.drawio.drawio_server , string
Address of the Draw.io editor. Required when enable is true
params.video_embeds , list , default[]
Platforms (youtube, bilibili, vimeo) whose player loads in place after a reader clicks a video card. Empty: cards only link out. See Video
params.map , boolean or map , defaultdisabled
Interactive maps above map place lists. See Map
params.map.enable , boolean , defaultfalse
Turns on interactive maps; needs tiles and attribution
params.map.tiles , string
HTTPS tile template with {z}, {x} and {y} ({s}, {r} and {-y} allowed; any other placeholder warns and the template is ignored). The theme names no tile service; required when enabled
params.map.attribution , string
The plain-text attribution the tile service requires. Required when enabled
params.map.attribution_url , string
Optional https:// URL turning attribution into a clickable link
params.map.dark_tiles , string
Optional tile template for dark mode
params.map.subdomains , string
Optional {s} subdomain characters as a quoted string (e.g. abcd, "01234567"); empty uses Leaflet’s abc
params.map.max_zoom , integer , default19
Highest zoom level, 1–22
params.map.loading , lazy | click , defaultlazy
Mount near viewport (lazy) or wait for a reader click (click)
params.highlight_classes , boolean , defaulttrue
Emits Chroma classes for syntax highlighting; false returns to Hugo’s inline styles
params.ui.code_copy , boolean , defaulttrue
Copy button on code blocks. false removes it site-wide; a fence’s own copy= still wins
params.ui.rich_copy , boolean , defaulttrue
Typeset HTML copy for article prose selections pasted into rich-text editors; overridable per page or cascade. See Copying into rich-text editors

Math needs no parameter, only the passthrough setting.

Output formats

The theme defines extra output formats but turns none of them on, because some are expensive to build and most sites need only a few. List the ones you want under outputs:

hugo.yml
outputs:
  home: [HTML, markdown, LLMS, NAVJSON]
  page: [HTML, markdown]
  section: [HTML, RSS, print, markdown]
Format Output Description
HTML index.html The interactive page; required
markdown index.md A plain Markdown version of each page. “Copy Markdown” and “View markdown” need it. See AI-agent support
LLMS llms.txt A plain-text site index for language models, usually on home only
LLMSFULL llms-full.txt Opt-in for a top-level section: its pages’ Markdown joined in sidebar order, one file per language
NAVJSON navigation.json Opt-in on home: the sidebar and pager tree as JSON, once per language, validated by schema/nav.v1.schema.json
print _print/index.html A whole section as one printable page. See Print
BookManifest book.json Optional JSON at a Book root for EPUB and PDF packaging tools. It is not an ebook itself
RSS index.xml Hugo’s own format. Add it to section to give each section a feed

LLMSFULL and BookManifest go in the front matter of the top-level section that publishes them, not in the site configuration, and NAVJSON belongs on outputs.home. AI-agent support and Books have complete examples.

Two parameters shape the print output:

params.print.toc , boolean , defaulttrue
A table of contents at the top of the print page. false leaves it out
params.print.section_break_wordcount , integer , default50
How many words a section needs before it starts on a new print page

Languages and versions

Languages are defined in Hugo’s own languages block, and the theme reads the translation links Hugo builds from it:

defaultContentLanguage , string , defaulten
The primary language, served without a path prefix
languages.<lang>.label , string
The language’s own name, shown in the language menu
languages.<lang>.locale , string
The full locale, used for <html lang> and SEO
languages.<lang>.weight , integer
Language order, which is also the cycle order when the reader clicks the language icon
languages.<lang>.title , string
The site name in that language
languages.<lang>.direction , string , defaultltr
rtl for a right-to-left language

Paired files, anchor alignment and fallback for untranslated pages are covered in Languages.

Version keys:

params.version , string
Identifier of this site variant; it need not be a Git ref. See Versions
params.version_menu , string , defaultVersion
Title of the version menu
params.versions , list
Version entries with version, url and kind; name: '---' is a divider
params.archived_version , boolean
Shows the “this is an archived version” banner at the top
params.url_latest_version , string
Link to the current version inside that banner
params.time_format_blog , string , default2006-01-02
Blog date format, overridable per language
params.time_format_default , string , default2006-01-02
Every other date format, overridable per language

Miscellaneous

taxonomies , map
Hugo’s own: turns on tag: tags and category: categories. See Taxonomies
params.taxonomy.page_header , list
Taxonomies shown in a post header. When unset, all of them
services.googleAnalytics.id , string
Hugo’s own: the analytics script is added to production builds only. See Analytics and SEO

Editor completion via generated schemas

The theme publishes JSON Schemas for its configuration, so your editor can complete keys, show each key’s documentation on hover and flag a wrong type as you type. schema/site-params.schema.json covers hugo.yml, and schema/front-matter.schema.json covers page front matter. Take them from the same release tag as the theme pinned in your go.mod, because keys change between releases.

With the VS Code YAML extension, map the site schema in your settings. This example uses OINK v1.8.0 and covers both common file names; replace the tag with the one in your go.mod:

.vscode/settings.json
{
  "yaml.schemas": {
    "https://raw.githubusercontent.com/pgsty/oink/v1.8.0/schema/site-params.schema.json": ["hugo.yml", "hugo.yaml"]
  }
}

To confirm the mapping works, give a boolean such as params.offline_search a string value for a moment: the editor should flag the type. Then put the valid value back. Front matter completion depends on your Markdown tooling; associate it with front-matter.schema.json in the same way. That schema does not enforce types, because keys such as share and theme_color also accept a bare boolean to opt out.

Verifying a configuration change

Build once after each configuration change:

hugo --printPathWarnings

The build is good when it ends with Total in … and prints no ERROR. Then read each WARN line; these are the common ones:

Warning fragment Cause
invalid params.ui.typography The only choices are technical and system
invalid params.ui.footer_style … (allowed: fat | slim | none) A misspelled footer style. When it comes from front matter, the warning names the page
invalid params.page_width … (allowed: normal | wide | full) A misspelled page width
invalid params.ui.section_index … (allowed: list | cards) A misspelled section index style
invalid params.offline_search_index The scopes are title, heading, summary and content
params.drawio.enable requires an explicit params.drawio.drawio_server Draw.io is enabled without an editor address
params.map.enable requires params.map.tiles … and params.map.attribution Maps are enabled without a complete tile service
params.map.tiles may use only the {s}, {z}, {x}, {y}, {-y} and {r} placeholders The template has a placeholder such as {apikey} that nothing fills; write the key into the URL
params.video_embeds must be a list of platforms Written as a single string or a boolean
params.search.algolia requires explicit appId, apiKey, and indexName One of the three Algolia values is missing
params.ui.image_zoom must be true or false Written as a string such as "true"
theme_color … is not a #rgb or #rrggbb hex color The value is not a hex color; the default palette stays
theme_color … reads at about N:1 against the theme's … canvas Advisory: the color still ships, and the message prints the id that silences it
theme_color_dark … has no theme_color to pair with Only the dark color was set. It is ignored, and both modes keep the default palette
command … must define exactly one of url or action A custom command has both url and action, or neither
invalid params.ui.sidebar_icon_policy …; using all A misspelled icon policy

Then check three things in a browser: one page in each language, one page without a translation to see the fallback, and links under the production baseURL, including any subpath the site is deployed under. Build with the same Hugo that builds the site in production; Get started lists the versions it needs.