aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic/source/_layouts
diff options
context:
space:
mode:
Diffstat (limited to '.themes/classic/source/_layouts')
-rw-r--r--.themes/classic/source/_layouts/default.html19
-rw-r--r--.themes/classic/source/_layouts/page.html30
-rw-r--r--.themes/classic/source/_layouts/post.html14
3 files changed, 40 insertions, 23 deletions
diff --git a/.themes/classic/source/_layouts/default.html b/.themes/classic/source/_layouts/default.html
index 4e4f81a3..15546bb5 100644
--- a/.themes/classic/source/_layouts/default.html
+++ b/.themes/classic/source/_layouts/default.html
@@ -2,25 +2,14 @@
<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>
+ <div id="main">
+ <div id="content">
+ {{ content }}
{% unless page.sidebar == 'none' %}
- <aside>{% include sidebar.html %}</aside>
+ <aside role=sidebar>{% 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
index 0c59c990..fe990dd7 100644
--- a/.themes/classic/source/_layouts/page.html
+++ b/.themes/classic/source/_layouts/page.html
@@ -1,5 +1,31 @@
---
-layout: post
+layout: default
---
-<!-- if you want a page layout -->
+<div>
+<article>
+ <header>
+ <h1 class="entry-title">{{ page.title | titlecase }}</h1>
+ {% unless page.no_meta or !index %}<p class="meta">{% include post_date.html %}</p>{% endunless %}
+ </header>
+ {{ content | smart_quotes }}
+ {% unless page.no_footer %}
+ <footer>
+ {% if page.date %}
+ <p class="meta">
+ {% include post_date.html %}
+ </p>
+ {% endif %}
+ {% unless page.no_sharing %}
+ {% include sharing.html %}
+ {% endunless %}
+ </footer>
+ {% endunless %}
+</article>
+{% if site.disqus_short_name and page.comments == true %}
+ <section>
+ <h1>Comments</h1>
+ <div id="disqus_thread">{% include disqus_thread.html %}</div>
+ </section>
+{% endif %}
+</div>
diff --git a/.themes/classic/source/_layouts/post.html b/.themes/classic/source/_layouts/post.html
index 5f55e89f..1e35ac72 100644
--- a/.themes/classic/source/_layouts/post.html
+++ b/.themes/classic/source/_layouts/post.html
@@ -3,22 +3,24 @@ layout: default
single: true
---
+<div>
<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>
+ {% unless page.no_sharing %}
+ {% include sharing.html %}
+ {% endunless %}
</footer>
- {% endunless %}
- {% if site.disqus_short_name %}
+</article>
+{% if site.disqus_short_name and page.no_comments != true %}
<section>
<h1>Comments</h1>
<div id="disqus_thread">{% include disqus_thread.html %}</div>
</section>
- {% endif %}
-</article>
+{% endif %}
+</div>