diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-06-29 14:01:06 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-06-29 14:01:06 -0400 |
commit | ea349cdfbfa4d42110099e49a8ff23f7213cd5b6 (patch) | |
tree | aca4c6c7646207fe295197695b0cf87ee2a46913 /.themes/classic/source/_layouts | |
parent | ce6621724c8d13530681724528b22e1c381f0dc2 (diff) | |
download | my_new_personal_website-ea349cdfbfa4d42110099e49a8ff23f7213cd5b6.tar.xz my_new_personal_website-ea349cdfbfa4d42110099e49a8ff23f7213cd5b6.zip |
Moved themes to .themes to get it out of the way. Updated Rakefile to support .themes dir and remove duplication. Improved deploy task. Renamed init_deploy to cofig_deploy and rewrote it to update configurations in the Rakefile for easier deploy use
Diffstat (limited to '.themes/classic/source/_layouts')
-rw-r--r-- | .themes/classic/source/_layouts/category_index.html | 12 | ||||
-rw-r--r-- | .themes/classic/source/_layouts/default.html | 26 | ||||
-rw-r--r-- | .themes/classic/source/_layouts/page.html | 5 | ||||
-rw-r--r-- | .themes/classic/source/_layouts/post.html | 24 |
4 files changed, 67 insertions, 0 deletions
diff --git a/.themes/classic/source/_layouts/category_index.html b/.themes/classic/source/_layouts/category_index.html new file mode 100644 index 00000000..699f3dec --- /dev/null +++ b/.themes/classic/source/_layouts/category_index.html @@ -0,0 +1,12 @@ +--- +layout: post +no_meta: true +--- + +<div class="blog-archives category"> +{% for post in site.categories[page.category] %} +<article> + {% include archive_post.html %} +</article> +{% endfor %} +</div> diff --git a/.themes/classic/source/_layouts/default.html b/.themes/classic/source/_layouts/default.html new file mode 100644 index 00000000..4e4f81a3 --- /dev/null +++ b/.themes/classic/source/_layouts/default.html @@ -0,0 +1,26 @@ +{% include head.html %} +<body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.sidebar == 'none' %} class="no-sidebar" {% endif %}> + <header>{% include header.html %}</header> + <nav>{% include navigation.html %}</nav> + <div> + <div> + <div id="articles" {% if page.blog_index %} class="blog-index" {% endif %}>{{ content }}</div> + {% unless page.sidebar == 'none' %} + <aside>{% include sidebar.html %}</aside> + {% endunless %} + </div> + </div> + <footer>{% include footer.html %}</footer> + {% if site.twitter_follow_button or site.twitter_tweet_button %} + <script type="text/javascript"> + (function(){ + var twitterWidgets = document.createElement('script'); + twitterWidgets.type = 'text/javascript'; + twitterWidgets.async = true; + twitterWidgets.src = 'http://platform.twitter.com/widgets.js'; + document.getElementsByTagName('head')[0].appendChild(twitterWidgets); + })(); + </script> + {% endif %} +</body> +</html> diff --git a/.themes/classic/source/_layouts/page.html b/.themes/classic/source/_layouts/page.html new file mode 100644 index 00000000..0c59c990 --- /dev/null +++ b/.themes/classic/source/_layouts/page.html @@ -0,0 +1,5 @@ +--- +layout: post +--- + +<!-- if you want a page layout --> diff --git a/.themes/classic/source/_layouts/post.html b/.themes/classic/source/_layouts/post.html new file mode 100644 index 00000000..5f55e89f --- /dev/null +++ b/.themes/classic/source/_layouts/post.html @@ -0,0 +1,24 @@ +--- +layout: default +single: true +--- + +<article class="hentry"> + {% include article.html %} + {% unless page.no_meta %} + <footer> + <p class="meta"> + {% include post_author.html %} + {% include post_date.html %} + {% include post_categories.html %} + {% include sharing.html %} + </p> + </footer> + {% endunless %} + {% if site.disqus_short_name %} + <section> + <h1>Comments</h1> + <div id="disqus_thread">{% include disqus_thread.html %}</div> + </section> + {% endif %} +</article> |