config/_default/config.toml. This file controls Hugo’s core behavior and site-wide settings.
Base configuration
These settings define the fundamental properties of your Hugo site.The base URL for your site. All relative URLs will be built from this.
The Hugo theme to use. This site uses the Congo theme.
The default language for content. This determines which language configuration to use when no language is specified.
SEO and indexing
Enable automatic generation of a robots.txt file for search engine crawlers.
The number of words to use when generating automatic summaries. Set to
0 to disable automatic summaries and use manual summaries only.Pagination
Control how content lists are paginated across your site.The number of items to display per page in paginated lists.
Analytics
Your Google Analytics measurement ID. When set, Google Analytics tracking will be automatically included in your site.
The Congo theme also supports other analytics providers like Fathom Analytics and Plausible Analytics through the
params.toml configuration.Output formats
Define which output formats Hugo should generate for different page types.The output formats to generate for the home page. Common formats include HTML, RSS, and JSON.
Complete example
Here’s the completeconfig.toml file for benson.vc:
config/_default/config.toml
Changes to
config.toml require restarting the Hugo development server to take effect.Markup configuration
Themarkup.toml file configures how Hugo processes markdown content and generates HTML.
Goldmark renderer
config/_default/markup.toml
unsafe = true allows raw HTML in markdown files, which is necessary for embedding custom HTML elements.
Syntax highlighting
noClasses = false generates CSS classes for syntax highlighting instead of inline styles, allowing for theme-based code highlighting.
Table of contents
##, ###, ####), excluding the main title (#).