Permalink
Browse files

更改ruby的日期格式语法,或许解决github build失败问题

  • Loading branch information...
1 parent e39dc14 commit 6ec9372570f4da225bd1962864d17158ab3394b0 @henryyan committed Jan 17, 2013
Showing with 5 additions and 5 deletions.
  1. +1 −1 _layouts/post.html
  2. +2 −2 blog.html
  3. +2 −2 index.html
View
@@ -2,7 +2,7 @@
layout: master
---
<div class='post'>
- <span class='date'>{{page.date | date_to_string}}</span>
+ <span class='date'>{{page.date | date: "%d %b %Y"}}</span>
<a href='{{post.url}}#comments' title='分享文章、查看评论' style="float:right">Comments</a>
<h1><a href='{{page.url}}'>{{page.title}}</a></h1>
<div class='body'>{{ content }}</div>
View
@@ -9,7 +9,7 @@
{% for post in site.posts %}
{% if forloop.index < page.full_posts %}
<div class='post'>
- <span class='date'>{{post.date | date_to_string}}</span>
+ <span class='date'>{{post.date | date: "%d %b %Y"}}</span>
<!-- JiaThis Button BEGIN -->
<div id="ckepop" style="padding-top:.7em;"><span class="jiathis_txt">分享到:</span>
<a class="jiathis_button_tsina"></a>
@@ -49,7 +49,7 @@
{% endif %}
<tr>
<th><a href='{{ post.url }}'>{{ post.title }}</a></th>
- <td>{{ post.date | date_to_string }}</td>
+ <td>{{ post.date | date: "%d %b %Y" }}</td>
<td><a href='{{post.url}}#disqus_thread'>Comments</a></td>
</tr>
{% endif %}
View
@@ -11,7 +11,7 @@
{% for post in site.posts limit:page.full_posts %}
<div class='post'>
- <span class='date'>{{post.date | date_to_string}}</span>
+ <span class='date'>{{post.date | date: "%d %b %Y"}}</span>
<a href='{{post.url}}#comments' title='分享文章、查看评论' style="float:right;margin-right:.5em;">Comments</a>
<h1><a href='{{post.url}}'>{{post.title}}</a></h1>
<div class='body'>{{post.content}}</div>
@@ -63,7 +63,7 @@
<div class="sidebar-item">
<ul class='sidebar-posts'>
{% for post in site.posts limit:10 %}
- <li title='发布日期:{{post.date | date_to_string}}'><a href='{{post.url}}'>{{post.title}}</a></li>
+ <li title='发布日期:{{post.date | date: "%d %b %Y"}}'><a href='{{post.url}}'>{{post.title}}</a></li>
{% endfor %}
</ul>
</div>

0 comments on commit 6ec9372

Please sign in to comment.