lektor / lektor-tags

For each tag on your site, build a list of pages with that tag. This can be used for standard tag-based blog navigation.
MIT License
27 stars 6 forks source link

Build a tag cloud #18

Closed paternal closed 2 years ago

paternal commented 4 years ago

Hello, I wrote a plugin to create a tag cloud :

The plugin counts the number of articles for each tag, and attributes a "weight" to each tag, which can be a number (on this page, it is a number between 100 and 200 which is used as the text size), or a string (e.g. "small", "normal", "big", which would be used as classes), or whatever you want. The template itself is not included in the package.

Right now, it is a quick and dirty script in the git directory of the website using it. However, I would like to publish it properly.

This could also be used to automatically generate a tags directory page (see #16).

Regards, -- Louis

goanpeca commented 4 years ago

I think it could be integrated. Thoughts @runfalk @nixjdm ?

runfalk commented 4 years ago

I definitely think we could integrate this into lektor-tags. It makes sense provide aggregated data as part of the plugin. Two things I think are necessary to merge it:

PRs are welcome.

paternal commented 4 years ago

Great! I'm adding this to my TODO list.

My plan is:

I might need some help for the last two items; I'll keep you updated. I do not plan to integrate a css file as an example, because I suck at CSS.

-- Louis

paternal commented 4 years ago

You can assign this issue to me (I don't think I'm allowed to do it myself).

paternal commented 4 years ago

Almost done. I am now waiting for you: