On top of Hugo global configuration, Hugo-theme-learn lets you define the following parameters in your
config.toml (here, values are default).
Note that some of these parameters are explained in details in other sections of this documentation.
If not already present, add the follow lines in the same
[outputs] home = [ "HTML", "RSS", "JSON"]
Hugo generate lunrjs index.json at the root of public folder. When you build the site with
hugo server, hugo generates it internally and of course it doesn’t show up in the filesystem
The mermaid configuration parameters can also be set on a specific page. In this case, the global parameter would be overwritten by the local one.
Mermaid is globally disabled. By default it won’t be loaded by any page.
On page “Architecture” you need a class diagram. You can set the mermaid parameters locally to only load mermaid on this page (not on the others).
You also can disable mermaid for specific pages while globally enabled.
disableLandingPage option is set to
false, an Home button will appear
on the left menu. It is an alternative for clicking on the logo. To edit the
appearance, you will have to configure two parameters for the defined languages:
[Lanugages] [Lanugages.en] ... landingPageURL = "/en" landingPageName = "<i class='fas fa-home'></i> Redirect to Home" ... [Lanugages.fr] ... landingPageURL = "/fr" landingPageName = "<i class='fas fa-home'></i> Accueil" ...
If those params are not configured for a specific language, they will get their default values:
landingPageURL = "/" landingPageName = "<i class='fas fa-home'></i> Home"
The home button is going to looks like this: