I want to make the theme customizable via config.toml.
The theme has a frontpage with several entries that are set in config.toml. Everything works perfectly but in the sidebar nothing works. No values from config.toml are used. It seems that hugo simply does not work inside the sidebar.
What @bep means is that you have to pass the page context, the ., to the partials that you’re using. Only with the context you’re able to access variables from the config file etc.
When you include the sidebar.html partial in the baseof.html template you have to add the . as last argument.
{{ partial "sidebar.html" . }}
Inside the sidebar.html partial you nested further partials that actually require the information that you can access trough the context.
Therefore, you have to pass the context to each (sub-)partial in sidebar.html as well, e.g.:
@juh2 I just downloaded the editorial theme. Did the dot/context issue fix your question? If not, let me know and I can look at the code on the theme and will clone your repo. Thanks.