diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2019-07-26 20:10:14 -0700 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2019-07-26 20:10:14 -0700 |
commit | a84badc9cb7c53aa739bd9792adce2601948762f (patch) | |
tree | 5946d5f2cfb030e0361152853ae7391da27e4303 /src | |
parent | 1a6bac63e6ec22d8ff4029e98de23643003c259b (diff) |
Allow for minute-grained date specifications
Diffstat (limited to 'src')
-rw-r--r-- | src/blog.html.erb | 2 | ||||
-rw-r--r-- | src/index.html.erb | 2 | ||||
-rw-r--r-- | src/post-template.html.erb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/blog.html.erb b/src/blog.html.erb index d89494a..bd7b8aa 100644 --- a/src/blog.html.erb +++ b/src/blog.html.erb @@ -1,7 +1,7 @@ <ul> <% posts.each do |post| %> <li> - <a href=<%= path_to post['title'] %>><%= post['title'] %></a> <%= post['date'] %> + <a href=<%= path_to post['title'] %>><%= post['title'] %></a> <%= format_date post['date'] %> </li> <% end %> </ul> diff --git a/src/index.html.erb b/src/index.html.erb index 23f08bc..11715c1 100644 --- a/src/index.html.erb +++ b/src/index.html.erb @@ -9,7 +9,7 @@ <ul> <% posts.take(5).each do |post| %> <li> - <a href='<%= path_to post['title'] %>'><%= post['title'] %></a> <%= post['date'] %> + <a href='<%= path_to post['title'] %>'><%= post['title'] %></a> <%= format_date post['date'] %> </li> <% end %> </ul> diff --git a/src/post-template.html.erb b/src/post-template.html.erb index ece1545..033df48 100644 --- a/src/post-template.html.erb +++ b/src/post-template.html.erb @@ -1,2 +1,2 @@ -<h2 style='display: inline'><%= post['title'] %></h2> (<%= post['date'] %>) +<h2 style='display: inline'><%= post['title'] %></h2> (<%= format_date post['date'] %>) <%= post['content'] %> |