Back to polishing… My taglist looks like:
<?php $tags = $pages->children()->visible()->pluck('tags', ',', true); asort($tags); ?>
<?php $p = kirby()->request()->params()->tag(); ?>
<ul>
<?php foreach($tags as $tag): ?>
<li>
<a class="tag<?php ecco($tag == $p, ' tag-active') ?>" href="<?php echo url(url::paramsToString(['tag' => $tag])) ?>"><?php echo html($tag) ?>
</a>
</li>
<?php endforeach ?>
</ul>
It behaves similarily to the code discussed above except for the feature with the “active” class, added to the opened link. How to add this functionality to the month filtering code?