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 %}
<h1 class="entry-title">{{ page.title | titlecase }}</h1>
{% endif %}
{% unless page.no_meta %}
{% unless page.meta == false %}
<p class="meta">{% include post/date.html %}</p>
{% endunless %}
</header>

View File

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

View File

@ -1,11 +1,11 @@
{% 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>
<nav>{% include navigation.html %}</nav>
<div id="main">
<div id="content">
{{ content }}
{% unless page.sidebar == 'none' %}
{% unless page.sidebar == false %}
<aside role=sidebar>{% include sidebar.html %}</aside>
{% endunless %}
</div>

View File

@ -6,17 +6,17 @@ layout: default
<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 %}
{% if page.meta == false or !page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %}
</header>
{{ content | smart_quotes }}
{% unless page.no_footer %}
{% unless page.footer == false %}
<footer>
{% if page.date %}
<p class="meta">
{% include post/date.html %}
</p>
{% endif %}
{% unless page.no_sharing %}
{% unless page.sharing == false %}
{% include post/sharing.html %}
{% endunless %}
</footer>

View File

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

View File

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

View File

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