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"
To make sure your menu is linking to the correct localized content, make sure that you customize the menu items to inlude the language prefix. Your menu might look like the following:
Anatole currently ships with support for some basic languages. Contributions for other language translations are welcome.
:100: Google Lighthouse score
The theme is optimized to adhere to the requirements checked for in the Lighthouse Audit. On my personal site I was able to reach a perfect 100⁄100 score.
Comments powered by Disqus
No comment section is shown on the single.html, unless a disqus code is specified in the config.toml file.
disqusShortname = "XXX"
To use Google Analytics, a valid tracking code has to be added. If you don’t want to load the code, then commend out the parameter.
googleAnalytics = "UA-123-45"
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.