title: In Jekyll: Want to use category (or tag) name in a list, but not all posts in a category
body: <p>I want to create a category index that simply creates a list of the categories in the site and a link to each category's index, as generated by the category index generator.</p>
  
  <pre><code>---
  layout: default
  title: "Categories"
  ---
  
  &lt;div id="category-index" class="container"&gt;
    &lt;ul id="categories"&gt;
      {% for category in site.categories %}
      &lt;li&gt;&lt;a href="/{{category}}/"&gt;{{ category }}&lt;/a&gt;&lt;/li&gt;
      {% endfor %}
    &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>but this give the entire array of posts. I just want the category name. I've tried <code>category.key</code>, <code>category.name</code>, and <code>category.title</code>, but I just do not seem to be able to get just that name.</p>
  
  <p>I am also hoping to do the same with site.tags, assuming there is a similar answer.</p>