aboutsummaryrefslogtreecommitdiff
path: root/themes/classic/source/_includes
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-06-27 17:38:51 -0400
committerBrandon Mathis <brandon@imathis.com>2011-06-27 17:38:51 -0400
commit62c9780c677a2750d8942773dffedbb1045a8f4b (patch)
tree133ff90e96edbe78da9fb724364c0514b2e6485c /themes/classic/source/_includes
parent87c9dc64303996aaea4f7487476bae3b6c811f66 (diff)
downloadmy_new_personal_website-62c9780c677a2750d8942773dffedbb1045a8f4b.tar.xz
my_new_personal_website-62c9780c677a2750d8942773dffedbb1045a8f4b.zip
Added archive_post partial
Added post_category partial Added archives page
Diffstat (limited to 'themes/classic/source/_includes')
-rw-r--r--themes/classic/source/_includes/archive_post.html8
-rw-r--r--themes/classic/source/_includes/post_categories.html10
2 files changed, 18 insertions, 0 deletions
diff --git a/themes/classic/source/_includes/archive_post.html b/themes/classic/source/_includes/archive_post.html
new file mode 100644
index 00000000..cd55c212
--- /dev/null
+++ b/themes/classic/source/_includes/archive_post.html
@@ -0,0 +1,8 @@
+{% capture category %}{{ post.categories | size }}{% endcapture %}
+<h1><a href="{{ post.url }}">{{post.title}}</a></h1>
+<time datetime="{{ post.date | datetime }}" pubdate>{{ post.date | date: "<span class='month'>%b</span> <span class='day'>%d</span> <span class='year'>%Y</span>"}}</time>
+{% if category != '0' %}
+<footer>
+ <span class="categories">posted in {{ post.categories | category_links }}</span>
+</footer>
+{% endif %}
diff --git a/themes/classic/source/_includes/post_categories.html b/themes/classic/source/_includes/post_categories.html
new file mode 100644
index 00000000..7bf7528f
--- /dev/null
+++ b/themes/classic/source/_includes/post_categories.html
@@ -0,0 +1,10 @@
+{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %}
+{% unless category == '0' %}
+<span class="categories"> in
+ {% if post %}
+ {{ post.categories | category_links }}
+ {% else %}
+ {{ page.categories | category_links }}
+ {% endif %}
+</span>
+{% endunless %}