"><linkrel=canonicalhref=https://jpanther.github.io/congo/docs/configuration/><linkrel=apple-touch-iconsizes=180x180href=/congo/apple-touch-icon.png><linkrel=icontype=image/pngsizes=32x32href=/congo/favicon-32x32.png><linkrel=icontype=image/pngsizes=16x16href=/congo/favicon-16x16.png><linkrel=manifesthref=/congo/site.webmanifest><metaproperty="og:url"content="https://jpanther.github.io/congo/docs/configuration/"><metaproperty="og:site_name"content="Congo"><metaproperty="og:title"content="Configuration"><metaproperty="og:description"content="All the configuration variables available in Congo."><metaproperty="og:locale"content="en-AU"><metaproperty="og:type"content="article"><metaproperty="article:section"content="docs"><metaproperty="article:published_time"content="2020-08-14T00:00:00+00:00"><metaproperty="article:modified_time"content="2020-08-14T00:00:00+00:00"><metaproperty="article:tag"content="Config"><metaproperty="article:tag"content="Docs"><metaname=twitter:cardcontent="summary"><metaname=twitter:titlecontent="Configuration"><metaname=twitter:descriptioncontent="All the configuration variables available in Congo."><scripttype=application/ld+json>{"@context":"https://schema.org","@type":"Article","articleSection":"Documentation","name":"Configuration","headline":"Configuration","description":"All the configuration variables available in Congo.","abstract":"Discover all the site, language and theme configurations that are available in Congo and how they can be used to customise your project.","inLanguage":"en-AU","url":"https:\/\/jpanther.github.io\/congo\/docs\/configuration\/","author":{"@type":"Person","name":"Congo"},"copyrightYear":"2020","dateCreated":"2020-08-14T00:00:00\u002b00:00","datePublished":"2020-08-14T00:00:00\u002b00:00","dateModified":"2020-08-14T00:00:00\u002b00:00","keywords":["config","docs"],"mainEntityOfPage":"true","wordCount":"2353"}</script><metaname=authorcontent="Congo"><linkhref=https://twitter.com/rel=me><linkhref=https://facebook.com/rel=me><linkhref=https://linkedin.com/rel=me><linkhref=https://youtube.com/rel=me></head><bodyclass="m-auto flex h-screen max-w-7xl flex-col bg-neutral px-6 text-lg leading-7 text-neutral-900 sm:px-14 md:px-24 lg:px-32 dark:bg-neutral-800 dark:text-neutral"><divid=the-topclass="absolute flex self-center"><aclass="-translate-y-8 rounded-b-lg bg-primary-200 px-3 py-1 text-sm focus:translate-y-0 dark:bg-neutral-600"href=#main-content><spanclass="pe-2 font-bold text-primary-600 dark:text-primary-400">↓</span>Skip to main content</a></div><headerclass="py-6 font-semibold text-neutral-900 print:hidden sm:py-10 dark:text-neutral"><navclass="flex items-start justify-between sm:items-center"><divclass="flex flex-row items-center"><aclass="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"rel=mehref=/congo/>Congo</a></div><ulclass="flex list-none flex-col text-end sm:flex-row"><liclass="group mb-1 sm:mb-0 sm:me-7 sm:last:me-0.5"><ahref=/congo/docs/title><spanclass="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2">Docs</span></a></li><liclass="group mb-1 sm:mb-0 sm:me-7 sm:last:me-0.5"><ahref=/congo/samples/title><spanclass="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2">Samples</span></a></li><liclass="group mb-1 sm:mb-0 sm:me-7 sm:last:me-0.5"><ahref=/congo/users/title><spanclass="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2">Users</span></a></li><liclass="group mb-1 sm:mb-0 sm:me-7 sm:last:me-0.5"><ahref=https://github.com/jpanther/congotitletarget=_blank><spanclass="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"><spanclass="icon relative inline-block px-1 align-text-bottom"><svgxmlns="http://www.w3.org/2000/svg"viewBox="0 0 496 512"><pathfill="currentcolor"d="M165.9397.4c02-2.33.6-5.23.6-3.3.3-5.6-1.3-5.6-3.6.0-22.3-3.65.2-3.63-.3
</span></span><spanclass=dark:text-neutral-300>As outlined in the <ahref=https://jpanther.github.io/congo/docs/installation/#set-up-theme-configuration-filestarget=_blankrel=noreferrer>installation instructions</a>, you should adjust your theme configuration by modifying the files in the <code>config/_default/</code> folder of your Hugo project and delete the <code>config.toml</code> file in your project root.</span></div><h2id=site-configurationclass="relative group">Site configuration <spanclass="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"><aclass="group-hover:text-primary-300 dark:group-hover:text-neutral-700"style=text-decoration-line:none!importanthref=#site-configurationaria-label=Anchor>#</a></span></h2><p>Standard Hugo configuration variables are respected throughout the theme, however there are some specific things that should be configured for the best experience.</p><p>The site configuration is managed through the <code>config/_default/config.toml</code> file. The table below outlines all the settings that the Congo takes advantage of.</p><p>Note that the variable names provided in this table use dot notation to simplify the TOML data structure (ie. <code>outputs.home</code> refers to <code>[outputs] home</code>).</p><table><thead><tr><th>Name</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><code>theme</code></td><td><code>"congo"</code></td><td>When using Hugo Modules this config value should be removed. For all other installation types, this must be set to <code>congo</code> for the theme to function.</td></tr><tr><td><code>baseURL</code></td><td><em>Not set</em></td><td>The URL to the root of the website.</td></tr><tr><td><code>defaultContentLanguage</code></td><td><code>"en"</code></td><td>This value determines the default language of theme components and content. Refer to the <ahref=#language-and-i18n>language and i18n</a> section below for supported language codes.</td></tr><tr><td><code>enableRobotsTXT</code></td><td><code>true</code></td><td>When enabled, a <code>robots.txt</code> file will be created in the site root that allows search engines to crawl the entire site. If you prefer to provide your own pre-made <code>robots.txt</code>, set to <code>false</code> and place your file in the <code>static</code> directory. For complete control, you may provide a <ahref=https://jpanther.github.io/congo/docs/content-examples/#custom-layouts>custom layout</a> to generate this file.</td></tr><tr><td><code>paginate</code></td><td><code>10</code></td><td>The number of articles listed on each page of the article listing.</td></tr><tr><td><code>summaryLength</code></td><td><code>0</code></td><td>The number of words that are used to generate the article summary when one is not provided in the <ahref=https://jpanther.github.io/congo/docs/front-matter/>front matter</a>. A value of <code>0</code> will use the first sentence. This value has no effect when summaries are hidden.</td></tr><tr><td><code>outputs.home</code></td><td><code>["HTML", "RSS", "JSON"]</code></td><td>The output formats that are generated for the site. Congo requires HTML, RSS and JSON for all theme components to work correctly.</td></tr><tr><td><code>permalinks</code></td><td><em>Not set</em></td><td>Refer to the <ahref=https://gohugo.io/content-management/urls/#permalinkstarget=_blankrel=noreferrer>Hugo docs</a> for permalink configuration.</td></tr><tr><td><code>taxonomies</code></td><td><em>Not set</em></td><td>Refer to the <ahref=https://jpanther.github.io/congo/docs/getting-started/#organising-content>Organising content</a> section for taxonomy configuration.</td></tr></tbody></table><h2id=language-and-i18nclass="relative group">Language and i18n <spanclass="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"><aclass="group-hover:text-primary-300 dark:group-hover:text-neutral-700"style=text-decoration-line:none!importanthref=#language-and-i18naria-label=Anchor>#</a></span></h2><p>Congo is optimised for full mult
</span></span><spanclass=dark:text-neutral-300><strong>Note:</strong> Ensure the <code>defaultContentLanguage</code> parameter in the <ahref=#site-configuration>site configuration</a> matches the language code in your language config filename.</span></div><table><thead><tr><th>Name</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><code>languageCode</code></td><td><code>"en"</code></td><td>The Hugo language code for this file. It can be a top-level language (ie. <code>en</code>) or a sub-variant (ie. <code>en-AU</code>) and should match the language code in the filename.</td></tr><tr><td><code>languageName</code></td><td><code>"English"</code></td><td>The name of the language.</td></tr><tr><td><code>languageDirection</code></td><td><code>"ltr"</code></td><td>Whether or not this is an RTL language. Set to <code>"rtl"</code> to reflow content from right-to-left. Congo fully supports using RTL and LTR languages at the same time and will dynamically adjust to both.</td></tr><tr><td><code>weight</code></td><td><code>1</code></td><td>The weight determines the order of languages when building multilingual sites.</td></tr><tr><td><code>title</code></td><td><code>"Congo"</code></td><td>The title of the website. This will be displayed in the site header and footer.</td></tr><tr><td><code>copyright</code></td><td><em>Not set</em></td><td>A Markdown string containing the copyright message to be displayed in the site footer. If none is provided, Congo will automatically generate a copyright string using the site <code>title</code>.</td></tr><tr><td><code>params.dateFormat</code></td><td><code>"2 January 2006"</code></td><td>How dates are formatted in this language. Refer to the <ahref=https://gohugo.io/functions/format/#gos-layout-stringtarget=_blankrel=noreferrer>Hugo docs</a> for acceptable formats.</td></tr><tr><td><code>params.mainSections</code></td><td><em>Not set</em></td><td>The sections that should be displayed in the recent articles list. If not provided the section with the greatest number of articles is used.</td></tr><tr><td><code>params.description</code></td><td><em>Not set</em></td><td>The website description. This will be used in the site metadata.</td></tr><tr><td><code>params.author.name</code></td><td><em>Not set</em></td><td>The author’s name. This will be displayed in article footers, and on the homepage when the profile layout is used.</td></tr><tr><td><code>params.author.image</code></td><td><em>Not set</em></td><td>Path to the image file of the author. The image should be a 1:1 aspect ratio and placed in the site’s <code>assets/</code> folder.</td></tr><tr><td><code>params.author.headline</code></td><td><em>Not set</em></td><td>A Markdown string containing the author’s headline. It will be displayed on the profile homepage under the author’s name.</td></tr><tr><td><code>params.author.bio</code></td><td><em>Not set</em></td><td>A Markdown string containing the author’s bio. It will be displayed in article footers.</td></tr><tr><td><code>params.author.links</code></td><td><em>Not set</em></td><td>The links to display alongside the author’s details. The config file contains example links which can simply be uncommented to enable. The order that the links are displayed is determined by the order they appear in the array. Custom links can be added by providing corresponding SVG icon assets in <code>assets/icons/</code>.</td></tr></tbody></table><h3id=menusclass="relative group">Menus <spanclass="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"><aclass="group-hover:text-primary-300 dark:group-hover:text-neutral-700"style=text-decoration-line:none!importanthref=#menusaria-label=Anchor>#</a></span></h3><p>Congo also supports language-specific menu configurations. Menu config files follow the same naming format as the languages file. Simply provide the language code in the file name to tell Hugo which language the file relates to.</p><p>Menu config files are named with the format <code>menus.[language-code].to