Adding A Tag Cloud To Any Theme
In order to add a tag cloud to a theme, you’ll need some HTML and CSS ability. Here’s some example HTML for adding a tag cloud:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if site.tags %} | |
<div class="tags"> | |
{% for tag in site.tags %} | |
<a href="/tag/{{ tag.name }}">#{{ tag.name }}</a> | |
{% endfor %} | |
</div> | |
{% endif %} |
You can style it however you like by adding some classes in between the