Skip to content
This repository
Browse code

Category updates

TODO: separate into a new partial.
  • Loading branch information...
commit 4878120fb6d1065d4e1f4e67e9526f75447e3bda 1 parent b7eb3c7
Dave Rupert davatron5000 authored
4 _layouts/category_index.html
@@ -25,7 +25,9 @@
25 25 <div class="well sidebar-nav">
26 26 <ul class="nav nav-list">
27 27 <li class="nav-header">Categories</li>
28   -
  28 + {% for cat in site.categories %}
  29 + <li><a href="/categories/{{ cat[0] }}">{{ cat[0] }}</a></li>
  30 + {% endfor %}
29 31 </ul>
30 32 </div><!--/.well -->
31 33 </div><!--/span-->
14 _layouts/default.html
@@ -73,9 +73,19 @@
73 73 <a class="brand" href="/"><img src="/img/logo.svg" class="logo" />Simple A11Y</a>
74 74 <div class="nav-collapse collapse">
75 75 <ul class="nav">
76   - <li><a href="/">Home</a></li>
77   - <li><a href="/about.html">About</a></li>
78 76 <li><a href="/archives.html">Archives</a></li>
  77 + <li><a href="/about.html">About</a></li>
  78 + <li class="dropdown">
  79 + <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  80 + Categories
  81 + <b class="caret"></b>
  82 + </a>
  83 + <ul class="dropdown-menu">
  84 + {% for cat in site.categories %}
  85 + <li><a href="/categories/{{ cat[0] }}">{{ cat[0] }}</a></li>
  86 + {% endfor %}
  87 + </ul>
  88 + </li>
79 89 </ul>
80 90 </div><!--/.nav-collapse -->
81 91 </div>
2  _plugins/category_generator.rb
@@ -29,4 +29,4 @@ def generate(site)
29 29 end
30 30 end
31 31
32   -end
  32 +end
6 _posts/2010-11-10-second-post.md
Source Rendered
... ... @@ -1,7 +1,9 @@
1 1 ---
2 2 layout: post
3   -title: Second Post
4   -tags: [second post]
  3 +title: |
  4 + ARIA introduction: roles, states, properties
  5 +categories:
  6 + - Basics
5 7 ---
6 8
7 9 {% highlight ruby %}
4 index.html
@@ -43,7 +43,9 @@
43 43 <div class="well sidebar-nav">
44 44 <ul class="nav nav-list">
45 45 <li class="nav-header">Categories</li>
46   -
  46 + {% for cat in site.categories | sort %}
  47 + <li><a href="/categories/{{ cat[0] }}">{{ cat[0] }}</a></li>
  48 + {% endfor %}
47 49 </ul>
48 50 </div><!--/.well -->
49 51 </div><!--/span-->

0 comments on commit 4878120

Please sign in to comment.
Something went wrong with that request. Please try again.