nav.html 516 B

12345678910111213141516171819
  1. <h1>{{ site.title }}</h1>
  2. <ul id='links'>
  3. {% for post in site.posts %}
  4. {% if post.category == null %}
  5. <li><a href='#{{ post.url }}'>{{ post.title }}</a></li>
  6. {% endif %}
  7. {% endfor %}
  8. {% for category in site.categories %}
  9. <li><h2>{{ category | first }}</h2>
  10. <ul>
  11. {% for posts in category %}
  12. {% for post in posts %}
  13. <li class='{{ post.type }}'><a href='#{{ post.url }}'>{{ post.title }}</a></li>
  14. {% endfor %}
  15. {% endfor %}
  16. </ul>
  17. </li>
  18. {% endfor %}
  19. </ul>