getnikola / plugins

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

Added static tagcloud plugin. #197

Closed felixfontein closed 7 years ago

felixfontein commented 7 years ago

Allows to create HTML fragments and CSS for tag clouds which can be included in the blog via JavaScript or some post-processing.

Kwpolska commented 7 years ago

Merge at will, the site will (or at least, should) update itself on midnight UTC.

felixfontein commented 7 years ago

Ok, thanks!

felixfontein commented 7 years ago

@Kwpolska: it looks like the plugin site didn't update (correctly).

Kwpolska commented 7 years ago

What went wrong?

felixfontein commented 7 years ago

The page for sidebar (https://plugins.getnikola.com/#sidebar) still has the broken ReST-style link, and the page for static_tagcloud doesn't seem to exist (https://plugins.getnikola.com/#static_tagcloud).

Kwpolska commented 7 years ago

I can see it, force a reload (Ctrl+Shift+R) and blame our single-page architecture.

felixfontein commented 7 years ago

Now both vanished for me...

Kwpolska commented 7 years ago

Try refreshing the JS file or using incognito mode?

felixfontein commented 7 years ago

It's really strange. If I load the JS file via wget or open it in a new tab, I can see sidebar and static_tagcloud in there. But when I check out via inspector what the browser is using on the pages, it uses an old version. Forcing reload or using incognito mode in Chromium (I'm testing both Firefox and Chromium) doesn't help, the same thing is happening there. Also, clearing the cache has the same result, which I find even more strange!

felixfontein commented 7 years ago

Hmm, maybe this is all related to CloudFlare? They seem to convert JavaScript to "rocketscript", and their rocket scripts are doing the actual loading, so this could be completely independent from what the browser is doing.

felixfontein commented 7 years ago

I guess I get the content from another CloudFlare server than you do, and the one I get the content from serves an outdated version of plugin_data.js.

Kwpolska commented 7 years ago

I tried nuking that file from cache. I should probably get going on the JS-less version of that site.

felixfontein commented 7 years ago

https://github.com/Kwpolska/nikola-plugins-v2 is going to be the JS-less version, right?

Kwpolska commented 7 years ago

Yes.

felixfontein commented 7 years ago

Can I help with that?

Kwpolska commented 7 years ago

Sure, I just invited you to that project. I think there isn’t that much to do, and to run it, you need to copy v7 from this repo into the root directory.

felixfontein commented 7 years ago

Where does it expects the plugin repository to be?

felixfontein commented 7 years ago

Ah. I tried that, but now I get an exception. Looks like one of the plugins is missing a Nikola section in the config.

felixfontein commented 7 years ago

Actually, that's v7/notebook_shortcode/notebook_shortcode.plugin.

felixfontein commented 7 years ago

(And is there a better place to discuss this then here?)

Kwpolska commented 7 years ago

getnikola/nikola#2482

I fixed notebook_shortcode.plugin.

felixfontein commented 7 years ago

Ok, thanks!