-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af33419
commit f066b5f
Showing
13 changed files
with
91 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
layout: post-index | ||
title: Blog Categories | ||
description: "An archive of posts sorted by category." | ||
comments: false | ||
--- | ||
|
||
{% capture site_cats %}{% for cat in site.categories %}{{ cat | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} | ||
{% assign cats_list = site_cats | split:',' | sort %} | ||
|
||
<ul class="entry-meta inline-list"> | ||
{% for item in (0..site.categories.size) %}{% unless forloop.last %} | ||
{% capture this_word %}{{ cats_list[item] | strip_newlines }}{% endcapture %} | ||
<li><a href="#{{ this_word }}" class="tag"><span class="term">{{ this_word }}</span> <span class="count">{{ site.categories[this_word].size }}</span></a></li> | ||
{% endunless %}{% endfor %} | ||
</ul> | ||
|
||
{% for item in (0..site.categories.size) %}{% unless forloop.last %} | ||
{% capture this_word %}{{ cats_list[item] | strip_newlines }}{% endcapture %} | ||
<article> | ||
<h2 id="{{ this_word }}" class="tag-heading">{{ this_word }}</h2> | ||
<ul> | ||
{% for post in site.categories[this_word] %}{% if post.title != null %} | ||
<li class="entry-title"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li> | ||
{% endif %}{% endfor %} | ||
</ul> | ||
</article><!-- /.hentry --> | ||
{% endunless %}{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
--- | ||
[ | ||
{% for post in site.posts %} | ||
{ | ||
"title" : "{{ post.title | escape }}", | ||
"category" : "{{ post.category }}", | ||
"tags" : "{{ post.tags | join: ', ' }}", | ||
"url" : "{{ site.url }}{{ post.url }}", | ||
"date" : "{{ post.date }}" | ||
} {% unless forloop.last %},{% endunless %} | ||
{% endfor %} | ||
] |