You can easily enable the dark mode from the config.toml all you have to do is to set the parameter displayMode to dark. If you dont specify any displayMode, then the light version will be loaded.
Please also note that returning visitors will see the theme that was last displayed to them on your site. If your user has his system configured to dark mode, then this will also take presendence over the displayMode set in the config.toml.
displayMode = "dark"
Anatole supports multilingual page setups. All you need to do is to add the languages to your ‘config.toml’. For each Language you can set the custom options like title or description. It’s important to include a LanguageName, as it will be displayed in the main menu.
title = "My blog"weight = 1LanguageName = "EN"
title = "Mein blog"description = "Ich bin Jane"weight = 2LanguageName = "DE"
There are two ways of translating your content either by adding a suffix in the filename eg. mypost.de.md or by setting a contentDir (a certain directory) for each language. Link to the Hugo documentation. If you want to use the option with the contentDir, you will have to add the contentDir parameter for each language:
Replace the hash with the one Google provided you.
Beautiful math functions
## Math settings
enable = false# options: true, false. Enable math support globally, default: false. You can always enable math on per page.use = "katex"# options: "katex", "mathjax". default is "katex".
Twitter Cards support
In order to use the full functionality of Twitter cards, you will have to define a couple of settings in the config.toml and the frontmatter of a page.
In the config.toml you can configure a site feature image. This image will be displayed, if no image is defined in the frontmatter of a page.
hello.js and world.js will be bundled into a custom.min.js.
If you want to configure the security headers for a site running on Netlify, you want to make sure you create a special _headers file in your sites static folder. The content might look like the following:
You can configure the pages shown on the front page by altering the mainSections parameter:
mainSections = ["post", "docs"]
If you want Hugo to generate a robots.txt, you will have to set the enableRobotsTXT in the config.toml to true. By default a robots.txt, which allows search engine crawlers to access to any page, will be generated. It will look like this:
If certain sites shoud be excluded from being accessed, you might want to setup a custom robots.txt file within your static folder of your site.
This theme has support for either Hugo’s lightning fast Chroma code highlighting. See the Hugo docs for more information.
To enable Chroma, add the following to your site parameters: