-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tables in config.extra can be merged with those in theme.extra #1100
Conversation
Recursion is here. Any further remarks? |
I am sorry if it is not relevant, but I think the |
|
I am currently working on that, will soon add a comment with my plans. I think In my opinion, Fluent is best used only for creating internationalized templates/themes. Will elaborate on that PR, but I am a noob. |
@southerntofu do you want to become a member/admin of the Zola org? You're doing great work |
@BertalanD if we keep |
Thanks, i accepted the invitation (i'm honored). I'm not sure what that entails but i intend to continue contributing however i can. Is there a team meeting planned sometime soon so i can get up to speed? Or a IRC/XMPP chatroom i can join?
I understand @BertalanD 's request for a simpler system for very straightforward cases. Maybe we could use |
Mostly just planning the next versions via GitHub project and fixing bugs/docs, reviewing PRs. We can do an async meeting on https://zola.discourse.group/ so more people can collaborate. |
This is a bugfix ported from #997 which allows to use tables (subsections) in config.extra/theme.extra and have them merged without losing information.
Example config.toml:
Example theme.toml:
Without this patch, accessing
extra.foo.baz
in a template will fail because theadd_theme_extra
function will entirely replace the theme's extra.foo with the config's extra.foo without merging child keys (bar, and baz in this example).The behavior introduced here is to crash when the theme is expecting a table which is overridden by some data of another type in the config. Not sure if that's the best approach.