# Show the categories name

**URL:** <https://talk.jekyllrb.com/t/show-the-categories-name/633>\
**Category:** Help\
**Created:** [June 10, 2017, 11:08am UTC](https://talk.jekyllrb.com/t/show-the-categories-name/633 "2017-06-10T11:08:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)\
**Post date:** [June 10, 2017, 11:08am UTC](https://talk.jekyllrb.com/t/show-the-categories-name/633/1 "2017-06-10T11:08:24Z")

</div>

When we start arranging blogs in categories we put some name.  
But how can we show that categories name to the post specific to it?

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [June 10, 2017, 5:21pm UTC](https://talk.jekyllrb.com/t/show-the-categories-name/633/2 "2017-06-10T17:21:08Z")

</div>

On a post, to display the category that post belongs to you would use `{{ page.category }}`

---

<div class="post-metadata">

**Author:** ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)\
**Post date:** [September 8, 2017, 11:18am UTC](https://talk.jekyllrb.com/t/show-the-categories-name/633/3 "2017-09-08T11:18:27Z")

</div>

And how to link it to its category page.

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [September 9, 2017, 2:44pm UTC](https://talk.jekyllrb.com/t/show-the-categories-name/633/4 "2017-09-09T14:44:20Z")

</div>

The same way you call it in above. Add that variable to a `href`.

Just note that Jekyll doesn’t create category pages for you, so just because you use something like `<a href="/{{ page.category }}">{{ page.category }}</a>` in your layouts doesn’t mean it will resolve.

You’ll need to manually create those archive pages or use a plugin like [Jekyll Archives](https://github.com/jekyll/jekyll-archives) to do it for you.
