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/article.html | 4 +--- .themes/classic/source/_includes/disqus_thread.html | 13 ------------- .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 ++++++++ .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/sharing.html | 8 -------- .themes/classic/source/_layouts/page.html | 8 ++++---- .themes/classic/source/_layouts/post.html | 10 +++++----- 13 files changed, 57 insertions(+), 59 deletions(-) delete mode 100644 .themes/classic/source/_includes/disqus_thread.html 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 delete mode 100644 .themes/classic/source/_includes/post_author.html delete mode 100644 .themes/classic/source/_includes/post_categories.html delete mode 100644 .themes/classic/source/_includes/post_date.html delete mode 100644 .themes/classic/source/_includes/sharing.html (limited to '.themes/classic/source') diff --git a/.themes/classic/source/_includes/article.html b/.themes/classic/source/_includes/article.html index 603c2f97..90257b8e 100644 --- a/.themes/classic/source/_includes/article.html +++ b/.themes/classic/source/_includes/article.html @@ -6,11 +6,9 @@

{{ page.title | titlecase }}

{% endif %} {% unless page.no_meta %} -

{% include post_date.html %}

+

{% include post/date.html %}

{% endunless %} - {% if index %} - {% endif %} {% endunless %} {% if index %}
{{ content | exerpt | smart_quotes }}
diff --git a/.themes/classic/source/_includes/disqus_thread.html b/.themes/classic/source/_includes/disqus_thread.html deleted file mode 100644 index f966f03a..00000000 --- a/.themes/classic/source/_includes/disqus_thread.html +++ /dev/null @@ -1,13 +0,0 @@ -
- - 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 %} +
diff --git a/.themes/classic/source/_includes/post_author.html b/.themes/classic/source/_includes/post_author.html deleted file mode 100644 index b2db9043..00000000 --- a/.themes/classic/source/_includes/post_author.html +++ /dev/null @@ -1,6 +0,0 @@ -{% 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 deleted file mode 100644 index 4a98b29d..00000000 --- a/.themes/classic/source/_includes/post_categories.html +++ /dev/null @@ -1,10 +0,0 @@ -{% 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 deleted file mode 100644 index f1ed4815..00000000 --- a/.themes/classic/source/_includes/post_date.html +++ /dev/null @@ -1,10 +0,0 @@ -{% 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/sharing.html b/.themes/classic/source/_includes/sharing.html deleted file mode 100644 index 7b074af5..00000000 --- a/.themes/classic/source/_includes/sharing.html +++ /dev/null @@ -1,8 +0,0 @@ -
- {% if site.twitter_tweet_button %} - - {% endif %} - {% if site.google_plus_one %} - - {% endif %} -
diff --git a/.themes/classic/source/_layouts/page.html b/.themes/classic/source/_layouts/page.html index fe990dd7..fb51816f 100644 --- a/.themes/classic/source/_layouts/page.html +++ b/.themes/classic/source/_layouts/page.html @@ -6,18 +6,18 @@ layout: default

{{ page.title | titlecase }}

- {% unless page.no_meta or !index %}

{% include post_date.html %}

{% endunless %} + {% unless page.no_meta or !index %}

{% include post/date.html %}

{% endunless %}
{{ content | smart_quotes }} {% unless page.no_footer %}
{% if page.date %}

- {% include post_date.html %} + {% include post/date.html %}

{% endif %} {% unless page.no_sharing %} - {% include sharing.html %} + {% include post/sharing.html %} {% endunless %}
{% endunless %} @@ -25,7 +25,7 @@ layout: default {% if site.disqus_short_name and page.comments == true %}

Comments

-
{% include disqus_thread.html %}
+
{% include post/disqus_thread.html %}
{% endif %} diff --git a/.themes/classic/source/_layouts/post.html b/.themes/classic/source/_layouts/post.html index 1e35ac72..2ec379c9 100644 --- a/.themes/classic/source/_layouts/post.html +++ b/.themes/classic/source/_layouts/post.html @@ -8,19 +8,19 @@ single: true {% include article.html %}

- {% include post_author.html %} - {% include post_date.html %} - {% include post_categories.html %} + {% include post/author.html %} + {% include post/date.html %} + {% include post/categories.html %}

{% unless page.no_sharing %} - {% include sharing.html %} + {% include post/sharing.html %} {% endunless %}
{% if site.disqus_short_name and page.no_comments != true %}

Comments

-
{% include disqus_thread.html %}
+
{% include post/disqus_thread.html %}
{% endif %} -- cgit v1.2.1