aaranxu / adidoks

AdiDoks is a mordern documentation theme, which is a port of the Hugo theme Doks for Zola.

Home Page:https://adidoks.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Macros should not rely on outside variables

Keats opened this issue · comments

Macros are meant to be pure functions (args) -> String. The fact that you can access config etc from inside is a pretty big bug in Tera and will very likely get fixed soonish. You should pass explicitly the arguments you need.

You're right. I will make some updates next.

I was not aware of this, will have to work on fixing abridge as well.

Hopefully zola build and zola serve will post some warning message about the intended functionality, otherwise users of many themes will be very surprised and scrambling to fix things.

I have added this to my todo list and will work on it soon.