From 8d3e0b4a0eb35f32b0d3e1e0ba86b1c0defe6215 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Wed, 13 Jul 2011 22:47:59 -0400 Subject: Moved some post partials into source/_includes/post/ and updated include links --- .themes/classic/source/_includes/post/author.html | 6 ++++++ .themes/classic/source/_includes/post/categories.html | 10 ++++++++++ .themes/classic/source/_includes/post/date.html | 10 ++++++++++ .themes/classic/source/_includes/post/disqus_thread.html | 13 +++++++++++++ .themes/classic/source/_includes/post/sharing.html | 8 ++++++++ 5 files changed, 47 insertions(+) create mode 100644 .themes/classic/source/_includes/post/author.html create mode 100644 .themes/classic/source/_includes/post/categories.html create mode 100644 .themes/classic/source/_includes/post/date.html create mode 100644 .themes/classic/source/_includes/post/disqus_thread.html create mode 100644 .themes/classic/source/_includes/post/sharing.html (limited to '.themes/classic/source/_includes/post') diff --git a/.themes/classic/source/_includes/post/author.html b/.themes/classic/source/_includes/post/author.html new file mode 100644 index 00000000..b2db9043 --- /dev/null +++ b/.themes/classic/source/_includes/post/author.html @@ -0,0 +1,6 @@ +{% if post.author %} + {% assign author = post.author %} +{% else %} + {% assign author = site.author %} +{% endif %} +{% if author %}Posted by {{ author }}{% 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..4a98b29d --- /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' %} + + {% if post %} + {{ post.categories | category_links }} + {% else %} + {{ page.categories | category_links }} + {% endif %} + +{% endunless %} diff --git a/.themes/classic/source/_includes/post/date.html b/.themes/classic/source/_includes/post/date.html new file mode 100644 index 00000000..f1ed4815 --- /dev/null +++ b/.themes/classic/source/_includes/post/date.html @@ -0,0 +1,10 @@ +{% capture date %}{{ page.date }}{{ post.date }}{% endcapture %} +{% capture has_date %}{{ date | size }}{% endcapture %} +{% capture updated %}{{ page.updated }}{{ post.updated }}{% endcapture %} +{% capture was_updated %}{{ updated | size }}{% endcapture %} +{% if has_date != '0' %} + +{% endif %} +{% if was_updated != '0' %} + +{% endif %} diff --git a/.themes/classic/source/_includes/post/disqus_thread.html b/.themes/classic/source/_includes/post/disqus_thread.html new file mode 100644 index 00000000..f966f03a --- /dev/null +++ b/.themes/classic/source/_includes/post/disqus_thread.html @@ -0,0 +1,13 @@ +
+ + diff --git a/.themes/classic/source/_includes/post/sharing.html b/.themes/classic/source/_includes/post/sharing.html new file mode 100644 index 00000000..7b074af5 --- /dev/null +++ b/.themes/classic/source/_includes/post/sharing.html @@ -0,0 +1,8 @@ +
+ {% if site.twitter_tweet_button %} + + {% endif %} + {% if site.google_plus_one %} + + {% endif %} +
-- cgit v1.2.1