mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Changed tag_cloud documentation to produce a working tag cloud
This commit is contained in:
parent
30192b2318
commit
f4932816fd
1 changed files with 12 additions and 2 deletions
|
|
@ -497,12 +497,22 @@ The default theme does not include a tag cloud, but it is pretty easy to add::
|
|||
|
||||
<ul>
|
||||
{% for tag in tag_cloud %}
|
||||
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0 }}</a></li>
|
||||
<span class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0 }}</a> </span>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
You should then also define a CSS style with the appropriate classes (tag-0 to tag-N, where
|
||||
N matches `TAG_CLOUD_STEPS` -1).
|
||||
N matches `TAG_CLOUD_STEPS` -1), tag-0 being the largest.
|
||||
|
||||
span.tag-0 {
|
||||
font-size: 150%;
|
||||
}
|
||||
|
||||
span.tag-1 {
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
...
|
||||
|
||||
Translations
|
||||
============
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue