From 73e540409ceb8bc18048b6a96a4b815fc303ea28 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Tue, 12 Aug 2014 10:55:23 -0500 Subject: [PATCH] Support octopress-hooks and octopress-date-format #1622 --- .../classic/source/_includes/post/date.html | 18 ++------ .themes/classic/source/_layouts/post.html | 2 +- .themes/classic/source/atom.xml | 1 - .themes/classic/source/robots.txt | 3 +- Gemfile | 4 +- plugins/backtick_code_block.rb | 7 ++- plugins/code_block.rb | 8 ++-- plugins/include_code.rb | 6 +-- plugins/octopress_filters.rb | 46 +++++++++++-------- plugins/pygments_code.rb | 6 +-- plugins/raw.rb | 4 +- 11 files changed, 47 insertions(+), 58 deletions(-) diff --git a/.themes/classic/source/_includes/post/date.html b/.themes/classic/source/_includes/post/date.html index ecf1ad7..a86953c 100644 --- a/.themes/classic/source/_includes/post/date.html +++ b/.themes/classic/source/_includes/post/date.html @@ -1,15 +1,5 @@ -{% capture date %}{{ page.date }}{{ post.date }}{% endcapture %} -{% capture date_formatted %}{{ page.date_formatted }}{{ post.date_formatted }}{% endcapture %} -{% capture has_date %}{{ date | size }}{% endcapture %} +{% if page.date %}{% capture time %}{{ page.date_time_html }}{% endcapture %}{% endif %} +{% if post.date %}{% capture time %}{{ post.date_time_html }}{% endcapture %}{% endif %} -{% capture updated %}{{ page.updated }}{{ post.updated }}{% endcapture %} -{% capture updated_formatted %}{{ page.updated_formatted }}{{ post.updated_formatted }}{% endcapture %} -{% capture was_updated %}{{ updated | size }}{% endcapture %} - -{% if has_date != '0' %} - {% capture time %}{% endcapture %} -{% endif %} - -{% if was_updated != '0' %} - {% capture updated %}{% endcapture %} -{% else %}{% assign updated = false %}{% endif %} \ No newline at end of file +{% if page.updated %}{% capture updated %}{{ page.date_time_updated_html }}{% endcapture %}{% endif %} +{% if post.updated %}{% capture updated %}{{ post.date_time_updated_html }}{% endcapture %}{% endif %} diff --git a/.themes/classic/source/_layouts/post.html b/.themes/classic/source/_layouts/post.html index 4091168..b450681 100644 --- a/.themes/classic/source/_layouts/post.html +++ b/.themes/classic/source/_layouts/post.html @@ -9,7 +9,7 @@ single: true