getnikola / plugins

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

Discourse Comments integration #425

Closed Mte90 closed 1 year ago

Mte90 commented 1 year ago

Ref: https://github.com/getnikola/nikola/issues/3689

So I started working but some stuff is not clear to me.

So my needs are just 2:

So right now I saw that hooks are just 6 https://getnikola.com/extending.html#toc-entry-16 and no one of them is useful for me to print in the comment section.
It would be useful to have something to access the macro comment_link_script to print what I need but I didn't find anything. I see the cactus_comment instead use template files but I am not sure if this create troubles with themes.

Instead how to read a field in the article I didn't find a plugin that do that to replicate the code.

I have some doubts if it is the case to integrate it on theme side or by plugin. Or a plugin that is not a comment system but a task generator.

PS: the code is not yet tested.

Kwpolska commented 1 year ago

Comment systems cannot be plugins. Instead, they should be part of Nikola core (they are just templates). Please convert your changes into Mako templates and open a pull request for getnikola/nikola.