Tags
The tags object contains all tags associated with the current page in the context. When iterating over the list of tags, the current tag can be adressed by using the :tag
variable.
Example
The following example is taken from the Standard themes and generates a simple list of tags, linking to another page, using tags as query string parameters.
<@ if @{ tags } @>
<ul class="uk-subnav">
<@ foreach in tags @>
<@ if @{ :i } > 1 @>
<li class="uk-disabled">
<span>, </span>
</li>
<@ end @>
<li>
<a href="@{ urlTagLinkTarget | def('/') }?filter=@{ :tag }">
@{ :tag }
</a>
</li>
<@ end @>
</ul>
<@ end @>