Fix: tagcloud display and link color

This commit is contained in:
Bertrand Benjamin 2020-06-30 14:28:14 +02:00
parent e6596700c2
commit 6edc783c56
4 changed files with 59 additions and 40 deletions

View File

@ -113,6 +113,48 @@ aside {
}
}
}
.tagcloud {
padding: 0;
list-style: none;
li {
display: inline-block;
}
h2 {
background-color: @sidebar-bg;
margin-bottom: 0;
}
ul {
list-style: none;
padding: 0;
}
ul li {
display: inline-block;
}
li.tag-0 {
font-size: 170%;
}
li.tag-1 {
font-size: 150%;
}
li.tag-2 {
font-size: 120%;
}
li.tag-3 {
font-size: 100%;
}
li.tag-4 {
font-size: 80%;
}
}
}
main {

File diff suppressed because one or more lines are too long

View File

@ -23,7 +23,7 @@
@sidebar-bg: @grey;
@sidebar-text-color: @white;
@sidebar-link-color: @white;
@sidebar-link-hover-color: @light-grey;
@sidebar-link-hover-color: @light-orange;
// Buttons
@btn-bg: @orange;

View File

@ -99,26 +99,28 @@
<nav>
<ul class="list">
{% for category, articles in categories|sort %}
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li>
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }} ({{ articles|count }})</a></li>
{% endfor %}
</ul>
</nav>
<h2><a href="{{ SITEURL }}/tags.html">
Thèmes
</a></h2>
<nav>
<ul class="tagcloud">
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}">
<a href="{{ SITEURL }}/{{ tag.0.url }}">
{{ tag.0 }}
{% if TAG_CLOUD_BADGE %}
<span class="badge">{{ tag.2 }}</span>
{% endif %}
</a>
</li>
{% endfor %}
</ul>
<ul class="tagcloud">
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}">
<a href="{{ SITEURL }}/{{ tag.0.url }}">
{{ tag.0 }}
{% if TAG_CLOUD_BADGE %}
<span class="badge">{{ tag.2 }}</span>
{% endif %}
</a>
</li>
{% endfor %}
</ul>
</nav>
</div>