sunpy / ablog

ABlog for blogging with Sphinx
https://ablog.readthedocs.io/
Other
181 stars 54 forks source link

Tags in tag cloud has same font-size #267

Closed SilverRainZ closed 9 months ago

SilverRainZ commented 9 months ago

Describe the bug

Although each tag has a corresponding CSS class "ablog-cloud-%d" to indicate the relative size, but there is no any CSS style defined, can we have a default style?

To Reproduce

Just see tag cloud of https://ablog.readthedocs.io/en/stable/

Screenshots

image

System Details

No response

Installation method

pip

SilverRainZ commented 9 months ago

I found that other ABlog instance has a normal tag cloud, I don't know what's the difference between them.

图片

nabobalis commented 9 months ago

Is the problem the line break after each tag?

SilverRainZ commented 9 months ago

I think not, the problem is https://ablog.readthedocs.io/en/stable/ lacks a <style> tag:

2024-01-03_004036

but http://blog.marc.rintsch.de/index.html has:

2024-01-03_004015

nabobalis commented 9 months ago

We can add a stylesheet in ablog. I wonder if ablog used to do that and I forgot.

SilverRainZ commented 9 months ago

Yes, the stylesheet is removed in #144, and possibly by accident

nabobalis commented 9 months ago

Ah yeah, good spot. I removed it and forgot to add anything back in an actual css file.

SilverRainZ commented 9 months ago

So you prefer to add a standalone CSS file than an embed style tag?

nabobalis commented 9 months ago

I would go towards that.

SilverRainZ commented 9 months ago

If you are busy, I can help with this :-)

nabobalis commented 9 months ago

I won't say no to help.