Skip to content

Commit

Permalink
feat(template): add modified date support
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Sep 27, 2015
1 parent eeed696 commit ffbb3f3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
14 changes: 14 additions & 0 deletions _app/_includes/themes/curtana/layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,20 @@ <h1 class="{{ amsf_page_heading_class }}" title="{{ page.title | strip_html | xm
<!-- Post content -->
<div class="post-content">
{{ content }}

{% assign date_publish = page.date | date: "%b %-d, %Y" %}
{% assign date_update = page.last_modified_at | date: "%b %-d, %Y" %}

{% if date_publish != date_update %}
<footer class="post-modified-date">
<p>
Updated
<time datetime="{{ page.last_modified_at | date: " %FT%X+08:00 " }}">
{{ page.last_modified_at | date: "%A, %b %d, %Y" }}
</time>
</p>
</footer>
{% endif %}
</div>

</article>
5 changes: 3 additions & 2 deletions _app/assets/themes/curtana/_less/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -591,8 +591,9 @@ body:hover .latest {
}

// Tweet button margin fix
.tweet {
margin-top: 10vmin;
.post-modified-date {
font-size: 75%;
opacity: .5;
}

// Largetype styles (replaces button styles)
Expand Down

0 comments on commit ffbb3f3

Please sign in to comment.