Add number of occurence to tags

It can be a bit frustrating to click on a tag only to realise it was the
only example with that tag.
This commit is contained in:
Maximilian Krög
2020-07-19 17:21:32 +02:00
parent aa0a895212
commit 50404ca409
3 changed files with 91 additions and 38 deletions

View File

@@ -113,7 +113,7 @@
</h4>
<p class="tags">
{{#each tags}}
<a href="./index.html?q={{.}}" class="badge badge-info">{{.}}</a>
<a href="./index.html?q={{./tag}}" class="badge badge-info">{{ ./tag }} ({{ ./amount }})</a>
{{/each}}
</p>
{{{ contents }}}