Feat: integrate tag_cloud

This commit is contained in:
2020-06-26 10:46:26 +02:00
parent ba64771efb
commit 952d19859c
8 changed files with 306 additions and 59 deletions

View File

@@ -70,7 +70,7 @@
</head>
<body>
<aside>
<div>
<div class="title">
<!--
<a href="{{ SITEURL }}">
{% if SITELOGO %}
@@ -86,9 +86,9 @@
</div>
<nav>
{% if TOCTREE %}
{% if TOCTREE %}
{% include "partial/toctree.html" %}
{% endif %}
{% endif %}
{% if pages or LINKS%}
<ul class="list">
@@ -106,8 +106,12 @@
{% endfor %}
</ul>
{% endif %}
</nav>
{% if TAG_CLOUD %}
{% include "partial/tagcloud.html" %}
{% endif %}
</aside>
<main>
{% if MAIN_MENU %}

View File

@@ -0,0 +1,15 @@
<div class="tagcloud">
<h2>Thèmes</h2>
<ul>
{% 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>
</div>