PontusHorn/Pico-Tags

Directory wise tagging

Opened this issue · 2 comments

Is it possible to implement Pico Tags to show tags only from the files in the parent directory? If, for instance, there are two directories serving content, articles and news, the code to display tags in news.md will also display tags of files in articles directory. This is unnecessary. news.md should display tags of only those files inside the news directory.

<ul>
    {% for tag in tags|sort %}
        <li><a href="{{current_page.url}}/?tag={{ tag }}">{{ tag }}</li>
    {% endfor %}
</ul>

It's not possible right now and I'm not planning to add more features to the plugin currently. Sounds like a reasonable feature though - I'm open to a PR if you're able and willing to add it yourself.

I am willing but unfortunately unable to (my username is literal). The best I can do is suggest features for improvements. Hopefully someone else can do that. Thanks anyway. ☺️