Skip to content
Tartarus

Configuration Reference

Every parameter Tartarus reads from hugo.toml.

On this page

Identity

ParameterDefaultDescription
projectNamesite titleShown in the navbar, drawer and metadata
descriptionFallback meta description
taglineHome page subtitle
logobuilt-in markPath in assets/ or static/
faviconfavicon.svgPath in static/
ogImageSocial share image

Theme

ParameterDefaultDescription
defaultThemesystemlight, dark or system
accentColor#6a4cffAccent in light mode
accentColorDark#a690ffAccent in dark mode

Repository

ParameterDefaultDescription
repositoryRepository URL; also enables edit links
repositoryBranchmainBranch used in edit links
docsPathcontentRepo-relative path to the content directory
showEditLinktrueShow "Edit this page"

Page chrome

ParameterDefaultDescription
showBreadcrumbtrueBreadcrumb above the page title
showPrevNexttruePrevious/next links
showToctrueTable of contents
showLastModifiedfalse"Last updated" line — see the note below
sidebarCollapseDepth2Sidebar levels expanded by default
showLastModified has two prerequisites

The date comes from .Lastmod, and turning the parameter on is not enough. You also need enableGitInfo = true, and a build that can see the full git history.

Both failures are quiet — the build succeeds either way:

BuildResult
enableGitInfo off, or no git repositoryNo dates at all; Tartarus warns once at build time
Shallow clone (fetch-depth: 1, the actions/checkout default)Every page gets the same date — the one fetched commit — and nothing warns
Full history (fetch-depth: 0)Each page gets its own last-commit date

Only the first case is detectable from inside a template, so CI must use fetch-depth: 0. The included workflow already does.

toml
[params.search]
  enable = true
  placeholder = "Search documentation..."
  maxResults = 12
toml
[params.footer]
  enable = true
  text = "Built with Hugo."
  copyright = "Acme Inc."
toml
[[params.social]]
  name = "GitHub"
  icon = "github"       # a file in layouts/partials/icons/
  url = "https://github.com/acme/docs"
  navbar = true         # also render it in the navbar

Markup

Tartarus expects these Hugo settings; change them only if you know why.

toml
[markup.goldmark.renderer]
  unsafe = true              # raw HTML in Markdown

[markup.highlight]
  noClasses = false          # class-based colours, themable

[markup.tableOfContents]
  startLevel = 2
  endLevel = 3

Per-page front matter

FieldEffect
titleHeading, <title>, sidebar label
linkTitleShorter navigation label
descriptionSubtitle and meta description
weightSidebar and prev/next ordering
tocfalse hides the table of contents
draftExcluded from production builds

Searching…

No results for “

Type to search the documentation.