-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implements tag cloud sorting #1598
Conversation
For those (like me) who don't like the tag cloud to be randomly organized, I've implemented some sorting options: * Alphabetically; * Alphabetically Reverse (descending); * Size; * Size Reverse (descending); * Random.
Hi, Might be worth adding this as a plugin instead of an addition to pelican. |
Hi, Despite it being possible to implement it in themes (as I used to do in my site), it will cause the site's building time to grow considerably. Since the sorting will be done in the theme, the tag cloud list sorting will be repeatedly executed for every generated page. Nowadays my site has something around 2000 pages, and it's taking 180 Thanks anyway. |
set in my
used like this in
no noticable slowdown on a rpi, 125s vs 130s then again, there is use in having this functionality as a plugin. Edit: that should help with generating on every site, since it should only be sorted once |
Setting it in Your haven't had any noticeable slowdowns because you have a "small" site. My site has nearly 180 articles and something around 400 tags. |
ah i thought the jinja environment would take care of caching then |
As far as I'm concerned it doesn't cache, since the tagcloud is altered and is never "written back" to the context that pelican uses. |
that might be worth considering together with #1566. feel like it needs tests even though you are basically just testing the build in sorting function. |
Maybe |
that certainly is an even better way forward On 20 April 2015 at 01:20, Deniz Turgut notifications@github.com wrote:
|
I agree with turning |
I will prepare a PR then |
@justinmayer pewpew here as well |
Since tag clouds are now out of core and implemented via a plugin, it would appear this pull request is no longer relevant. (Thanks for the reminder, @ingwinlu.) |
For those (like me) who don't like the tag cloud to be randomly organized, I've implemented some sorting options: