Feat: integrate tag_cloud
This commit is contained in:
@@ -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 %}
|
||||
|
15
theme/templates/partial/tagcloud.html
Normal file
15
theme/templates/partial/tagcloud.html
Normal 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>
|
Reference in New Issue
Block a user