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

This commit is contained in:
Brandon Mathis 2011-07-18 16:59:59 -04:00
parent 0f2686eff7
commit 64b23d9f34
7 changed files with 13 additions and 12 deletions

View File

@ -5,7 +5,7 @@
{% else %} {% else %}
<h1 class="entry-title">{{ page.title | titlecase }}</h1> <h1 class="entry-title">{{ page.title | titlecase }}</h1>
{% endif %} {% endif %}
{% unless page.no_meta %} {% unless page.meta == false %}
<p class="meta">{% include post/date.html %}</p> <p class="meta">{% include post/date.html %}</p>
{% endunless %} {% endunless %}
</header> </header>

View File

@ -1,6 +1,6 @@
--- ---
layout: page layout: page
no_footer: true footer: false
--- ---
<div id="blog-archives" class="category"> <div id="blog-archives" class="category">

View File

@ -1,11 +1,11 @@
{% include head.html %} {% include head.html %}
<body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.sidebar == 'none' %} class="no-sidebar" {% endif %}> <body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.sidebar == false %} class="no-sidebar" {% endif %}>
<header>{% include header.html %}</header> <header>{% include header.html %}</header>
<nav>{% include navigation.html %}</nav> <nav>{% include navigation.html %}</nav>
<div id="main"> <div id="main">
<div id="content"> <div id="content">
{{ content }} {{ content }}
{% unless page.sidebar == 'none' %} {% unless page.sidebar == false %}
<aside role=sidebar>{% include sidebar.html %}</aside> <aside role=sidebar>{% include sidebar.html %}</aside>
{% endunless %} {% endunless %}
</div> </div>

View File

@ -6,17 +6,17 @@ layout: default
<article> <article>
<header> <header>
<h1 class="entry-title">{{ page.title | titlecase }}</h1> <h1 class="entry-title">{{ page.title | titlecase }}</h1>
{% unless page.no_meta or !index %}<p class="meta">{% include post/date.html %}</p>{% endunless %} {% if page.meta == false or !page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %}
</header> </header>
{{ content | smart_quotes }} {{ content | smart_quotes }}
{% unless page.no_footer %} {% unless page.footer == false %}
<footer> <footer>
{% if page.date %} {% if page.date %}
<p class="meta"> <p class="meta">
{% include post/date.html %} {% include post/date.html %}
</p> </p>
{% endif %} {% endif %}
{% unless page.no_sharing %} {% unless page.sharing == false %}
{% include post/sharing.html %} {% include post/sharing.html %}
{% endunless %} {% endunless %}
</footer> </footer>

View File

@ -12,12 +12,12 @@ single: true
{% include post/date.html %} {% include post/date.html %}
{% include post/categories.html %} {% include post/categories.html %}
</p> </p>
{% unless page.no_sharing %} {% unless page.sharing == false %}
{% include post/sharing.html %} {% include post/sharing.html %}
{% endunless %} {% endunless %}
</footer> </footer>
</article> </article>
{% if site.disqus_short_name and page.no_comments != true %} {% if site.disqus_short_name and page.comments == true %}
<section> <section>
<h1>Comments</h1> <h1>Comments</h1>
<div id="disqus_thread">{% include post/disqus_thread.html %}</div> <div id="disqus_thread">{% include post/disqus_thread.html %}</div>

View File

@ -1,7 +1,7 @@
--- ---
layout: page layout: page
title: Blog Archive title: Blog Archive
no_footer: true footer: false
--- ---
<div id="blog-archives"> <div id="blog-archives">

View File

@ -1,6 +1,7 @@
--- ---
layout: default layout: default
blog_index: true meta: false
footer: false
--- ---
<div class="blog-index"> <div class="blog-index">
{% assign index = true %} {% assign index = true %}