Skip to content

Commit

Permalink
Category pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed May 29, 2014
1 parent 8b244dd commit 7bd9693
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 1 deletion.
13 changes: 13 additions & 0 deletions _layouts/category.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
layout: default
---

<h1>{{page.title}}</h1>

<ul>
{% for p in site.pages %}{% if p.layout == 'pattern' %}{% if p.category == page.title %}
<li>
<a href="{{page.url}}"><strong>{{p.title}}</strong></a> {{p.tagline}}
</li>
{% endif %}{% endif %}{% endfor %}
</ul>
2 changes: 1 addition & 1 deletion _layouts/pattern.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: default
---

<h3>Pattern: {{page.name}}</h3>
<h3>Pattern: {{page.title}}</h3>

<p>
<strong>What is it?</strong> {{page.tagline}}
Expand Down
4 changes: 4 additions & 0 deletions categories/community.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Community
layout: category
---
4 changes: 4 additions & 0 deletions categories/delivery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Delivery
layout: category
---
4 changes: 4 additions & 0 deletions categories/engagement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Engagement
layout: category
---
4 changes: 4 additions & 0 deletions categories/government.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Government
layout: category
---

0 comments on commit 7bd9693

Please sign in to comment.