Skip to content
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

Add tag_cloud support #273

Open
radoeka opened this issue Jul 24, 2021 · 6 comments
Open

Add tag_cloud support #273

radoeka opened this issue Jul 24, 2021 · 6 comments

Comments

@radoeka
Copy link
Contributor

radoeka commented Jul 24, 2021

The attached patch provide tag_cloud support: flex-tag_cloud.zip.
Would be nice if this can be add to Flex.

@radoeka
Copy link
Contributor Author

radoeka commented Jul 25, 2021

Improved version (updated css file). This one uses the 'fit-content' width directive.

Patch can be applied from the Flex top directory with: "patch -p8 < flex-tag_cloud-1.patch"
flex-tag_cloud-1.zip.

It introduces 2 new stings to be translated:

translations/messages.pot
+#: templates/tags.html:13
+msgid "Tag Cloud"
+msgstr ""
+
+#: templates/tags.html:22
+msgid "Tag List"
+msgstr ""

@alexandrevicenzi
Copy link
Owner

Feel free to submit the patch as a pull request.

@radoeka
Copy link
Contributor Author

radoeka commented Jul 26, 2021

I would have done so, if I knew the steps how to make a PR.
Can you provide the steps to make a pull request (I don't have write permission to the Flex repository), please.

@alexandrevicenzi
Copy link
Owner

So, there is a tag-cloud plugin for Pelican, I'll consider this for Flex 3.0.

@alexandrevicenzi alexandrevicenzi added this to the 3.0-dev milestone Mar 31, 2023
@radoeka
Copy link
Contributor Author

radoeka commented Apr 1, 2023

@alexandrevicenzi what a coincidence, I just started to play with this plugin last week (again).

I've a nice result already, but I still need your support in getting the code that I currently have to you (see update Jul 26, 2021). But let me share what I currently have. See the attached zip file:
tag_cloud-flex-20230401.zip

The looks as follows (modified tags.html page):

The colors work in the light as well as in the dark theme. However, at the moment the colors are fixed in css.

I hope that my changes can be integrated with Flex (v3). At the moment the styling is based on the class. However, I'm checking out this article create-a-tag-cloud-with-html-and-css, that used a "data-" attribute to do the styling. As such I added this attribute already to the "a" tag.

Is there a way to communicate to you outside this ticket (e.g. using email)? I've some other items that I would like to share with Flex. For example styling for the markdown ".toc" (Table of Contents) tag, as well as an action-banner.
But as most of these requires CSS and translations it is hard to do so.

I'll still have to checkout v3, perhaps things are easier over there...

@alexandrevicenzi
Copy link
Owner

v3 is a work in progress, but the idea is to make things easier.

I'm on Matrix as @avicenzi:matrix.org or @avicenzi:opensuse.org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants