I’ve come up with a way to do sticky headings in pure CSS. In order to create a theme with this technique, I need some control over how Zola renders
I don’t think the templating engine would make this possible.
I went to make a pull request, but the message on github indicated that I should discuss it here first. To prove to myself that it could be done, I put together an implementation on my own fork:
I thought about how this could be made more generic – maybe some people would want to use a tag other than
I think the ideal would have been to be able to bundle some code for post-processing as part of the theme (so that the needs of each theme don’t have to spill into the main rendering code), but for now that doesn’t seem as feasible.
Open to feedback.