hugo-toha / guides

Documentation Hugo theme Toha. https://github.com/hossainemruz/toha.
https://toha-guides.netlify.app/
MIT License
23 stars 57 forks source link

Tags #34

Closed alnutile closed 3 years ago

alnutile commented 3 years ago

You do not mention tags in your docs but they are pretty easy to add.

        <ul id="tags-single">
          <li>Tags:</li>
          {{ range .Params.tags }}
          <li><a href="/tags/{{ . | urlize }}">{{ . }}</a> </li>
          {{ end }}
        </ul>

and add

taxonomies:
  tag: tags

to config.yaml

I could update the docs but figured I would ask first.

Thanks for all the work btw!

hossainemruz commented 3 years ago

@alnutile I actually don't know when to use tags 😃. Can you give some use cases?

alnutile commented 3 years ago

hey, sure. For example I have a blog post that covers both aws and laravel or aws, laravel, serverless, vuejs etc

You can see my blog post here https://alnutile.github.io/posts/333/

This example article will have content about Laravel and about AWS

If you go to https://alnutile.github.io/tags/laravel/ (or click on the tag) it makes a nice display

I use to do this alot here https://alfrednutile.info/ (sadly just noticed the tag link stopped moving ¯_(ツ)_/¯)