Add modified page date to sidebar if available. Solves most of #8

This commit is contained in:
Michael Rose 2013-06-30 16:13:07 -04:00
parent dc33992fea
commit 3e6dc7cd52
3 changed files with 5 additions and 3 deletions

View file

@ -3,7 +3,7 @@ description: A simple and clean responsive Jekyll theme for words and photo
logo: site-logo.png logo: site-logo.png
disqus_shortname: sosimpletheme disqus_shortname: sosimpletheme
#Comment out url when working locally to resolve base urls correctly #Comment out url when working locally to resolve base urls correctly
url: http://mmistakes.github.io/so-simple-theme #url: http://mmistakes.github.io/so-simple-theme
# Owner/author information # Owner/author information
owner: owner:

View file

@ -23,8 +23,9 @@
<footer class="entry-meta"> <footer class="entry-meta">
<img src="{{ site.url }}/images/{{ site.owner.avatar }}" alt="{{ site.owner.name }} photo" class="author-photo"> <img src="{{ site.url }}/images/{{ site.owner.avatar }}" alt="{{ site.owner.name }} photo" class="author-photo">
<span class="author vcard" itemprop="author" itemscope itemtype="http://schema.org/Person">By <span itemprop="name" class="fn"><a href="{{ site.url }}/about" title="About {{ site.owner.name }}" itemprop="url">{{ site.owner.name }}</a></span></span> <span class="author vcard" itemprop="author" itemscope itemtype="http://schema.org/Person">By <span itemprop="name" class="fn"><a href="{{ site.url }}/about" title="About {{ site.owner.name }}" itemprop="url">{{ site.owner.name }}</a></span></span>
<span class="entry-date date updated"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%B %d, %Y" }}</time></span> <span class="entry-date date published"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished"><i class="icon-calendar-empty"></i> {{ page.date | date: "%B %d, %Y" }}</time></span>
{% if page.comments %}<span class="entry-comments"><a href="#disqus_thread">Comment</a></span>{% endif %} {% if page.modified %}<span class="entry-date date modified"><time datetime="{{ page.modified }}" itemprop="dateModified"><i class="icon-pencil"></i> {{ page.modified | date: "%B %d, %Y" }}</time></span>{% endif %}
{% if page.comments %}<span class="entry-comments"><i class="icon-comment-alt"></i> <a href="#disqus_thread">Comment</a></span>{% endif %}
<span><a href="{{ site.url }}{{ page.url }}" rel="bookmark" title="{{ page.title }}"><i class="icon-link"></i> Permalink</a></span> <span><a href="{{ site.url }}{{ page.url }}" rel="bookmark" title="{{ page.title }}"><i class="icon-link"></i> Permalink</a></span>
</footer> </footer>
<div class="entry-content"> <div class="entry-content">

View file

@ -4,6 +4,7 @@ title: "Post with Large Feature Image and Text"
description: "Custom written post descriptions are the way to go... if you're not lazy." description: "Custom written post descriptions are the way to go... if you're not lazy."
category: articles category: articles
tags: [sample post, readability] tags: [sample post, readability]
modified: 2013-06-30
image: image:
feature: so-simple-sample-image-3.jpg feature: so-simple-sample-image-3.jpg
comments: true comments: true