From 0e072543dad52537ad2f445b5c718488c379144c Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Wed, 10 Aug 2011 18:14:56 -0400 Subject: added support for preserving customized source/index.html during template updates. Moved the blog index code to a partial in source/_includes/blog_index.html --- .themes/classic/source/_includes/blog_index.html | 40 ++++++++++++++++++++++ .themes/classic/source/index.html | 43 ++---------------------- 2 files changed, 42 insertions(+), 41 deletions(-) create mode 100644 .themes/classic/source/_includes/blog_index.html (limited to '.themes') diff --git a/.themes/classic/source/_includes/blog_index.html b/.themes/classic/source/_includes/blog_index.html new file mode 100644 index 00000000..c77ea7d0 --- /dev/null +++ b/.themes/classic/source/_includes/blog_index.html @@ -0,0 +1,40 @@ +
+{% assign index = true %} +{% for post in paginator.posts %} +{% assign content = post.content %} +
+ {% include article.html %} +
+{% endfor %} + +{% if site.disqus_short_name %} + +{% endif %} +
+ diff --git a/.themes/classic/source/index.html b/.themes/classic/source/index.html index 7f4c0e12..fa5310a9 100644 --- a/.themes/classic/source/index.html +++ b/.themes/classic/source/index.html @@ -1,44 +1,5 @@ --- layout: default -footer: false --- -
-{% assign index = true %} -{% for post in paginator.posts %} -{% assign content = post.content %} -
- {% include article.html %} -
-{% endfor %} - -{% if site.disqus_short_name %} - -{% endif %} -
- + +{% include blog_index.html %} -- cgit v1.2.1