getnikola / plugins

Extra plugins for Nikola
https://plugins.getnikola.com/
MIT License
57 stars 93 forks source link

Expand meta_template accepted keywords and documentation #385

Closed JesperDramsch closed 3 years ago

JesperDramsch commented 3 years ago

I recently built my website with Nikola and heavily relied on meta_templates to reuse code-bocks.

However, I needed to dig into the code to understand how to actually use it and ended up extending the code with general "template_00" keywords. I think this change (and the change to the Readme.md) could enhance the original plugin and make it more usable to the wider user base.

The main change is that the meta_template accepts "template_00" through "template_99" now. This was necessary because the options have to be pre-defined within the plugin, not accepting "any kind of option" unfortunately.

Kwpolska commented 3 years ago

I think that instead of resurrecting an old plugin, it might be a better idea to use template-based shortcodes.

JesperDramsch commented 3 years ago

That's fair. I didn't know about those. I think they might be less readable in some of my cases.