Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are no way to grab list of generated category pages #6

Open
shigeya opened this issue Sep 21, 2014 · 3 comments
Open

There are no way to grab list of generated category pages #6

shigeya opened this issue Sep 21, 2014 · 3 comments

Comments

@shigeya
Copy link
Owner

shigeya commented Sep 21, 2014

Generated category pages are appended to master site.pages variable. There is a request to implement list of generated category pages. Possibly, site.category_pages.

@joenorton
Copy link

Shigeya - I just use this:

{% for category in site.categories %}
    {% categorylink post.category %}
      {{ category | first }}
    {% endcategorylink %}
  {% endfor %}

@shigeya
Copy link
Owner Author

shigeya commented Oct 27, 2014

Thank you. will check and will follow-up.

@franzos
Copy link

franzos commented Feb 4, 2015

Set the desired path in the config:

category_archive:
  path: /blog/

List all categories. Create a link:

<div class="categories">
    <ul class="nav nav-pills">
      {% for category in site.categories %}
      <li><a href="/blog/{{ category[0] }}">{{ category[0] }}</a></li>
      {% endfor %}
    </ul>
</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants