# Adding Latest post and most popular tags to the sidebar

**URL:** <https://discourse.gohugo.io/t/adding-latest-post-and-most-popular-tags-to-the-sidebar/246>\
**Category:** support\
**Created:** [October 22, 2014, 1:55pm UTC](https://discourse.gohugo.io/t/adding-latest-post-and-most-popular-tags-to-the-sidebar/246 "2014-10-22T13:55:25Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![tatsushid](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/tatsushid/32/7219_2.png) [@tatsushid](https://discourse.gohugo.io/u/tatsushid)\
**Post date:** [October 23, 2014, 1:55pm UTC](https://discourse.gohugo.io/t/adding-latest-post-and-most-popular-tags-to-the-sidebar/246/7 "2014-10-23T13:55:20Z")

</div>

Here is the example of the tag list.

```auto
<ul>
  {{ range first 10 .Site.Taxonomies.tags.ByCount }}
    <li><a href="/tags/{{ .Name | urlize }}">{{ .Name }}</a> ({{ .Count }})</li>
  {{ end }}
</ul>

```

On my environment, it works

---

_[View the full topic](https://discourse.gohugo.io/t/adding-latest-post-and-most-popular-tags-to-the-sidebar/246)._
