aboutsummaryrefslogtreecommitdiff
path: root/source/_includes/article.html
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-05-30 00:30:16 -0400
committerBrandon Mathis <brandon@imathis.com>2011-05-30 00:30:16 -0400
commit8698a276f937cb1cd6f67f7f213e2ea438500d7e (patch)
tree3963ed8f9750cd565087ce54fe8de38d9f5c606d /source/_includes/article.html
parentc7d5365f81552cae16bbb91696ca3e67b4a0a2e9 (diff)
downloadmy_new_personal_website-8698a276f937cb1cd6f67f7f213e2ea438500d7e.tar.xz
my_new_personal_website-8698a276f937cb1cd6f67f7f213e2ea438500d7e.zip
Cleaned out public from repository, updated gitignore, added syntax
highlighting tests, improved syntax highlighting and styling of pre blocks. Overriding dynamic gist styling. Added a plugin for pygments caching which should speed things up terrifically. added ender.js as a lightweight way of scripting the DOM, events, etc. Some general typography and semantic html improvements.
Diffstat (limited to 'source/_includes/article.html')
-rw-r--r--source/_includes/article.html35
1 files changed, 22 insertions, 13 deletions
diff --git a/source/_includes/article.html b/source/_includes/article.html
index 92f06720..3481cf21 100644
--- a/source/_includes/article.html
+++ b/source/_includes/article.html
@@ -1,18 +1,27 @@
<header>
- <h1><a href="{{ page.url }}">{{ page.title }}</a></h1>
- <p>
- {% if site.author or site.author == page.author %}
- <span class="byline author vcard">By <span class="fn">{{ site.author }}</span></span>
- {% elsif page.author %}
- <span class="byline author vcard">By <span class="fn">{{ page.author }}</span></span>
+ {% if index %}
+ <h1><a href="{{ page.url }}">{{ page.title }}</a></h1>
+ {% else %}
+ <h1>{{ page.title }}</h1>
+ {% endif %}
+ {% unless page.nometa %}
+ {% if page.author %}
+ {% assign author = page.author %}
+ {% else %}
+ {% assign author = site.author %}
{% endif %}
- {% if page.date %}
- <time datetime="{{ page.date | datetime }}" pubdate>{{ page.date | ordinalize }}</time>
- {% endif %}
- {% if page.updated %}
- <time class="updated" datetime="{{ page.updated | datetime }}" pubdate>Updated {{ page.updated | ordinalize }}</time>
- {% endif %}
- </p>
+ <p>
+ {% if author %}
+ <span class="byline author vcard">By <span class="fn">{{ author }}</span></span>
+ {% endif %}
+ {% if page.date %}
+ <time datetime="{{ page.date | datetime }}" pubdate>{{ page.date | ordinalize }}</time>
+ {% endif %}
+ {% if page.updated %}
+ <time class="updated" datetime="{{ page.updated | datetime }}" pubdate>Updated {{ page.updated | ordinalize }}</time>
+ {% endif %}
+ </p>
+ {% endunless %}
</header>
{% if index %}
<div class="entry">{{ content | exerpt(content, page.url, 'Continue reading &raquo;') | smart_quotes }}</div>