diff options
Diffstat (limited to 'themes/classic/source/_includes')
-rw-r--r-- | themes/classic/source/_includes/article.html | 7 | ||||
-rw-r--r-- | themes/classic/source/_includes/navigation.html | 4 | ||||
-rw-r--r-- | themes/classic/source/_includes/post_author.html | 4 | ||||
-rw-r--r-- | themes/classic/source/_includes/post_date.html | 12 |
4 files changed, 16 insertions, 11 deletions
diff --git a/themes/classic/source/_includes/article.html b/themes/classic/source/_includes/article.html index 7ed6430f..b458d732 100644 --- a/themes/classic/source/_includes/article.html +++ b/themes/classic/source/_includes/article.html @@ -1,7 +1,7 @@ {% unless page.no_header %} <header> {% if index %} - <h1 class="entry-title"><a href="{{ page.url }}">{{ page.title | titlecase }}</a></h1> + <h1 class="entry-title"><a href="{{ post.url }}">{{ post.title | titlecase }}</a></h1> {% else %} <h1 class="entry-title">{{ page.title | titlecase }}</h1> {% endif %} @@ -10,12 +10,13 @@ {% endunless %} {% if index %} <div class="entry-content">{{ content | exerpt | smart_quotes }}</div> - <p><a rel="full-article" href="{{ page.url }}">Read on →</a></p> + <p><a rel="full-article" href="{{ post.url }}">Read on →</a></p> <footer> <p class="meta"> {% include post_author.html %} {% include post_date.html %} - <span class="comments"><a rel="comments" href="{{ page.url }}#disqus_thread">Add a comment</a></span> + {% include post_categories.html %} + <span class="comments"><a rel="comments" href="{{ post.url }}#disqus_thread">Comments</a></span> {% include sharing.html %} </p> </footer> diff --git a/themes/classic/source/_includes/navigation.html b/themes/classic/source/_includes/navigation.html index f941f1f1..e2827983 100644 --- a/themes/classic/source/_includes/navigation.html +++ b/themes/classic/source/_includes/navigation.html @@ -11,6 +11,6 @@ </fieldset> </form> <ul role="main-nav"> - <li><a href="/">Home</a></li> - <li><a href="/archive.html">Archive</a></li> + <li><a href="/">Blog</a></li> + <li><a href="/archives.html">Archives</a></li> </ul> diff --git a/themes/classic/source/_includes/post_author.html b/themes/classic/source/_includes/post_author.html index a62a68a8..b2db9043 100644 --- a/themes/classic/source/_includes/post_author.html +++ b/themes/classic/source/_includes/post_author.html @@ -1,5 +1,5 @@ -{% if page.author %} - {% assign author = page.author %} +{% if post.author %} + {% assign author = post.author %} {% else %} {% assign author = site.author %} {% endif %} diff --git a/themes/classic/source/_includes/post_date.html b/themes/classic/source/_includes/post_date.html index e8455a60..f1ed4815 100644 --- a/themes/classic/source/_includes/post_date.html +++ b/themes/classic/source/_includes/post_date.html @@ -1,6 +1,10 @@ -{% if page.date %} -<time datetime="{{ page.date | datetime }}" pubdate {% if page.updated %} updated {% endif %}>{{ page.date | ordinalize }}</time> +{% capture date %}{{ page.date }}{{ post.date }}{% endcapture %} +{% capture has_date %}{{ date | size }}{% endcapture %} +{% capture updated %}{{ page.updated }}{{ post.updated }}{% endcapture %} +{% capture was_updated %}{{ updated | size }}{% endcapture %} +{% if has_date != '0' %} +<time datetime="{{ date | datetime }}" pubdate {% if updated %} updated {% endif %}>{{ date | ordinalize }}</time> {% endif %} -{% if page.updated %} -<time class="updated" datetime="{{ page.updated | datetime }}"></time> +{% if was_updated != '0' %} +<time class="updated" datetime="{{ updated | datetime }}"></time> {% endif %} |