Closed postb99 closed 7 months ago
I recently came to the conclusion that TOML and YAML may be easy to get first but are both b...easts when it comes to more complex examples.
In your examples it comes down to the fact that you can't redefine subsections once you've left them.
The configuration you are looking for is collapsibleMenu
and it belongs into `[params]'.
Your configuration is fine until you open a new section below the themeVariant
parameter. After that you can't go back to add more options to params
anymore.
So the block
# Change the title separator. Default to "::".
titleSeparator = "-"
# If set to true, the menu in the sidebar will be displayed in a collapsible tree view. Although the functionality works with old browsers (IE11), the display of the expander icons is limited to modern browsers
collapsibleMenu = true
# If a single page can contain content in multiple languages, add those here
additionalContentLanguage = [ "en" ]
# If set to true, no index.html will be appended to prettyURLs; this will cause pages not
# to be servable from the file system
disableExplicitIndexURLs = false
# For external links you can define how they are opened in your browser; this setting will only be applied to the content area but not the shortcut menu
externalLinkTarget = "_blank"
themeVariantAuto = [ "relearn-light", "relearn-dark" ]
must move up somewhere between [params]
and [[params.themeVariant]]
.
enableMissingTranslationPlaceholders = false
is a Hugo top-level setting and must come before [build]
Hello,
Once I enabled the site history and rebuilt whole site, I could not find the menu item collapse/uncollapse icons so this is unpractical. What did I miss compared to the example site where the ">" icon is still there?
I really suspect it comes from menu custom width and arose only after I enabled site history.
I live with it for months ;)