Browse code

Improved variable names for setting footer, sharing, sidebar and metadata diesplay from page configurations

Brandon Mathis authored on 18/07/2011 at 20:59:59
Showing 7 changed files
... ...
@@ -5,7 +5,7 @@
5 5
     {% else %}
6 6
       <h1 class="entry-title">{{ page.title | titlecase }}</h1>
7 7
     {% endif %}
8
-    {% unless page.no_meta %}
8
+    {% unless page.meta == false %}
9 9
       <p class="meta">{% include post/date.html %}</p>
10 10
     {% endunless %}
11 11
   </header>
... ...
@@ -1,6 +1,6 @@
1 1
 ---
2 2
 layout: page
3
-no_footer: true
3
+footer: false
4 4
 ---
5 5
 
6 6
 <div id="blog-archives" class="category">
... ...
@@ -1,11 +1,11 @@
1 1
 {% include head.html %}
2
-<body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.sidebar == 'none' %} class="no-sidebar" {% endif %}>
2
+<body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.sidebar == false %} class="no-sidebar" {% endif %}>
3 3
   <header>{% include header.html %}</header>
4 4
   <nav>{% include navigation.html %}</nav>
5 5
   <div id="main">
6 6
     <div id="content">
7 7
       {{ content }}
8
-      {% unless page.sidebar == 'none' %}
8
+      {% unless page.sidebar == false %}
9 9
         <aside role=sidebar>{% include sidebar.html %}</aside>
10 10
       {% endunless %}
11 11
     </div>
... ...
@@ -6,17 +6,17 @@ layout: default
6 6
 <article>
7 7
   <header>
8 8
     <h1 class="entry-title">{{ page.title | titlecase }}</h1>
9
-    {% unless page.no_meta or !index %}<p class="meta">{% include post/date.html %}</p>{% endunless %}
9
+    {% if page.meta == false or !page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %}
10 10
   </header>
11 11
   {{ content | smart_quotes }}
12
-  {% unless page.no_footer %}
12
+  {% unless page.footer == false %}
13 13
     <footer>
14 14
       {% if page.date %}
15 15
       <p class="meta">
16 16
         {% include post/date.html %}
17 17
       </p>
18 18
       {% endif %}
19
-      {% unless page.no_sharing %}
19
+      {% unless page.sharing == false %}
20 20
         {% include post/sharing.html %}
21 21
       {% endunless %}
22 22
     </footer>
... ...
@@ -12,12 +12,12 @@ single: true
12 12
       {% include post/date.html %}
13 13
       {% include post/categories.html %}
14 14
     </p>
15
-    {% unless page.no_sharing %}
16
-    {% include post/sharing.html %}
15
+    {% unless page.sharing == false %}
16
+      {% include post/sharing.html %}
17 17
     {% endunless %}
18 18
   </footer>
19 19
 </article>
20
-{% if site.disqus_short_name and page.no_comments != true %}
20
+{% if site.disqus_short_name and page.comments == true %}
21 21
   <section>
22 22
     <h1>Comments</h1>
23 23
     <div id="disqus_thread">{% include post/disqus_thread.html %}</div>
... ...
@@ -1,7 +1,7 @@
1 1
 ---
2 2
 layout: page
3 3
 title: Blog Archive
4
-no_footer: true
4
+footer: false
5 5
 ---
6 6
 
7 7
 <div id="blog-archives">
... ...
@@ -1,6 +1,7 @@
1 1
 ---
2 2
 layout: default
3
-blog_index: true
3
+meta: false
4
+footer: false
4 5
 ---
5 6
 <div class="blog-index">
6 7
 {% assign index = true %}