From 318e348163dc39297dff960fdb01886c8cfe2bd3 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Sat, 16 Jun 2012 17:17:33 -0500 Subject: [PATCH] Removed include_array plugin, replaced it with include_sidebar plugin and reorganized sidebars --- .../source/_includes/asides/googleplus.html | 11 ---- .../source/_includes/custom/asides/about.html | 4 -- .../sidebars/blog_index_default.html | 4 ++ .../_includes/sidebars/page_default.html | 5 ++ .../_includes/sidebars/post_default.html | 5 ++ .../sections}/delicious.html | 0 .../{asides => sidebars/sections}/github.html | 0 .../sidebars/sections/google_plus.html | 6 ++ .../sections}/pinboard.html | 0 .../sections}/recent_posts.html | 0 .../sections}/twitter.html | 0 .themes/classic/source/_layouts/page.html | 14 ++--- .themes/classic/source/_layouts/post.html | 12 ++-- .themes/classic/source/index.html | 12 ++-- _config.yml | 19 +++--- plugins/include_array.rb | 58 ------------------- plugins/include_sidebar.rb | 24 ++++++++ 17 files changed, 72 insertions(+), 102 deletions(-) delete mode 100644 .themes/classic/source/_includes/asides/googleplus.html delete mode 100644 .themes/classic/source/_includes/custom/asides/about.html create mode 100644 .themes/classic/source/_includes/sidebars/blog_index_default.html create mode 100644 .themes/classic/source/_includes/sidebars/page_default.html create mode 100644 .themes/classic/source/_includes/sidebars/post_default.html rename .themes/classic/source/_includes/{asides => sidebars/sections}/delicious.html (100%) rename .themes/classic/source/_includes/{asides => sidebars/sections}/github.html (100%) create mode 100644 .themes/classic/source/_includes/sidebars/sections/google_plus.html rename .themes/classic/source/_includes/{asides => sidebars/sections}/pinboard.html (100%) rename .themes/classic/source/_includes/{asides => sidebars/sections}/recent_posts.html (100%) rename .themes/classic/source/_includes/{asides => sidebars/sections}/twitter.html (100%) delete mode 100644 plugins/include_array.rb create mode 100644 plugins/include_sidebar.rb diff --git a/.themes/classic/source/_includes/asides/googleplus.html b/.themes/classic/source/_includes/asides/googleplus.html deleted file mode 100644 index 00a0aa8..0000000 --- a/.themes/classic/source/_includes/asides/googleplus.html +++ /dev/null @@ -1,11 +0,0 @@ -{% if site.googleplus_user %} -
-

- - - Google+ - -

-
-{% endif %} - diff --git a/.themes/classic/source/_includes/custom/asides/about.html b/.themes/classic/source/_includes/custom/asides/about.html deleted file mode 100644 index 59d309e..0000000 --- a/.themes/classic/source/_includes/custom/asides/about.html +++ /dev/null @@ -1,4 +0,0 @@ -
-

About Me

-

A little something about me.

-
diff --git a/.themes/classic/source/_includes/sidebars/blog_index_default.html b/.themes/classic/source/_includes/sidebars/blog_index_default.html new file mode 100644 index 0000000..8e90a22 --- /dev/null +++ b/.themes/classic/source/_includes/sidebars/blog_index_default.html @@ -0,0 +1,4 @@ +{% include sidebars/sections/twitter.html %} +{% include sidebars/sections/delicious.html %} +{% include sidebars/sections/pinboard.html %} +{% include sidebars/sections/google_plus.html %} diff --git a/.themes/classic/source/_includes/sidebars/page_default.html b/.themes/classic/source/_includes/sidebars/page_default.html new file mode 100644 index 0000000..1d91fc8 --- /dev/null +++ b/.themes/classic/source/_includes/sidebars/page_default.html @@ -0,0 +1,5 @@ +{% include sidebars/sections/recent_posts.html %} +{% include sidebars/sections/twitter.html %} +{% include sidebars/sections/delicious.html %} +{% include sidebars/sections/pinboard.html %} +{% include sidebars/sections/google_plus.html %} diff --git a/.themes/classic/source/_includes/sidebars/post_default.html b/.themes/classic/source/_includes/sidebars/post_default.html new file mode 100644 index 0000000..1d91fc8 --- /dev/null +++ b/.themes/classic/source/_includes/sidebars/post_default.html @@ -0,0 +1,5 @@ +{% include sidebars/sections/recent_posts.html %} +{% include sidebars/sections/twitter.html %} +{% include sidebars/sections/delicious.html %} +{% include sidebars/sections/pinboard.html %} +{% include sidebars/sections/google_plus.html %} diff --git a/.themes/classic/source/_includes/asides/delicious.html b/.themes/classic/source/_includes/sidebars/sections/delicious.html similarity index 100% rename from .themes/classic/source/_includes/asides/delicious.html rename to .themes/classic/source/_includes/sidebars/sections/delicious.html diff --git a/.themes/classic/source/_includes/asides/github.html b/.themes/classic/source/_includes/sidebars/sections/github.html similarity index 100% rename from .themes/classic/source/_includes/asides/github.html rename to .themes/classic/source/_includes/sidebars/sections/github.html diff --git a/.themes/classic/source/_includes/sidebars/sections/google_plus.html b/.themes/classic/source/_includes/sidebars/sections/google_plus.html new file mode 100644 index 0000000..57d3e00 --- /dev/null +++ b/.themes/classic/source/_includes/sidebars/sections/google_plus.html @@ -0,0 +1,6 @@ +{% if site.google_plus_user %} + + Google Plus icon + +{% endif %} + diff --git a/.themes/classic/source/_includes/asides/pinboard.html b/.themes/classic/source/_includes/sidebars/sections/pinboard.html similarity index 100% rename from .themes/classic/source/_includes/asides/pinboard.html rename to .themes/classic/source/_includes/sidebars/sections/pinboard.html diff --git a/.themes/classic/source/_includes/asides/recent_posts.html b/.themes/classic/source/_includes/sidebars/sections/recent_posts.html similarity index 100% rename from .themes/classic/source/_includes/asides/recent_posts.html rename to .themes/classic/source/_includes/sidebars/sections/recent_posts.html diff --git a/.themes/classic/source/_includes/asides/twitter.html b/.themes/classic/source/_includes/sidebars/sections/twitter.html similarity index 100% rename from .themes/classic/source/_includes/asides/twitter.html rename to .themes/classic/source/_includes/sidebars/sections/twitter.html diff --git a/.themes/classic/source/_layouts/page.html b/.themes/classic/source/_layouts/page.html index b610c0b..1e7802e 100644 --- a/.themes/classic/source/_layouts/page.html +++ b/.themes/classic/source/_layouts/page.html @@ -13,7 +13,7 @@ layout: default {{ content }} {% unless page.footer == false %}