Tagging - Amay22/Siteleaf_Nadaleen GitHub Wiki

Taxonomy (list of tags)

It is an important feature and something that we really need. These tags are stored in a list. By default every site has a default list called tags.

Variable Description taxonomy Array of all taxonomy sets. taxonomy.KEY Get tags by set name, ie. Tags.

Count number of tags in the default Tags set:

	{{taxonomy['tags'] | size}}

Loop through the Tags set:

	<ul>
	{% for tag in taxonomy['tags'] %}
	  <li><a href="{{tag.url}}">{{tag.value}}</a></li>
	{% endfor %}
	</ul>

For more info on tags please look at the following pages as I was not able to understand how to add them: http://www.siteleaf.com/help/themes/variables/taxonomy-and-tags/ http://www.siteleaf.com/blog/taxonomy-in-siteleaf/

⚠️ **GitHub.com Fallback** ⚠️