From 8698a276f937cb1cd6f67f7f213e2ea438500d7e Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Mon, 30 May 2011 00:30:16 -0400 Subject: 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. --- source/_includes/article.html | 35 ++++++++++++++++++++++------------- source/_includes/footer.html | 6 +++--- source/_includes/head.html | 23 ++++++++++++++++++----- source/_includes/sidebar.html | 4 ++-- 4 files changed, 45 insertions(+), 23 deletions(-) (limited to 'source/_includes') 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 @@
-

{{ page.title }}

-

- {% if site.author or site.author == page.author %} - - {% elsif page.author %} - + {% if index %} +

{{ page.title }}

+ {% else %} +

{{ page.title }}

+ {% endif %} + {% unless page.nometa %} + {% if page.author %} + {% assign author = page.author %} + {% else %} + {% assign author = site.author %} {% endif %} - {% if page.date %} - - {% endif %} - {% if page.updated %} - - {% endif %} -

+

+ {% if author %} + + {% endif %} + {% if page.date %} + + {% endif %} + {% if page.updated %} + + {% endif %} +

+ {% endunless %}
{% if index %}
{{ content | exerpt(content, page.url, 'Continue reading »') | smart_quotes }}
diff --git a/source/_includes/footer.html b/source/_includes/footer.html index de560edc..5b40083e 100644 --- a/source/_includes/footer.html +++ b/source/_includes/footer.html @@ -3,9 +3,9 @@ Powered by Octopress

{% if site.pinboard_user %} + - {% endif %} diff --git a/source/_includes/head.html b/source/_includes/head.html index 1d3329ba..b311ca69 100644 --- a/source/_includes/head.html +++ b/source/_includes/head.html @@ -1,7 +1,16 @@ + + + + + + - - {{page.title}} - {{site.title}} + {% if page.title %} + {{site.title}}: {{page.title}}{% if site.author %} - {{ site.author }}{% endif %} + {% else %} + {{site.title}}{% if site.author %} - {{ site.author }}{% endif %} + {% endif %} {% if page.description %} @@ -10,7 +19,7 @@ - + {% if page.keywords %} @@ -18,8 +27,12 @@ - - + + + + + + {% if site.google_analytics_tracking_id %} {% include google_analytics.html %} {% endif %} diff --git a/source/_includes/sidebar.html b/source/_includes/sidebar.html index c5e3bd01..03890462 100644 --- a/source/_includes/sidebar.html +++ b/source/_includes/sidebar.html @@ -2,14 +2,13 @@

About Me

Hi, I'm Octopress!

-{% if site.recent_posts %} +{% if page.single and site.recent_posts %}

Recent Posts

@@ -24,3 +23,4 @@ {% if site.pinboard_user %}
{% include pinboard.html %}
{% endif %} + -- cgit v1.2.1