diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-02 17:01:47 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-02 17:01:59 -0500 |
commit | 0d19abc9e4dc8ac7242942f23194e6e5f1df603b (patch) | |
tree | 57381b548286cd0219bf58c9b59c4b86d5a2bb05 /bin/index.md.erb | |
parent | 3c6e767e44711b29ee3c938be18d70bb27023b7c (diff) | |
parent | 2c415a62e2579813278766e5903d347bf400e6f2 (diff) |
make: better tags
Diffstat (limited to 'bin/index.md.erb')
-rw-r--r-- | bin/index.md.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/index.md.erb b/bin/index.md.erb index a9419ba..f7a463b 100644 --- a/bin/index.md.erb +++ b/bin/index.md.erb @@ -3,4 +3,4 @@ title: "<%= @path %>" --- <% @pages.sort_by{|a|a.published}.reverse.each do |a| %> - * <time><%= a.published.strftime('%Y-%m-%d') %></time> - [<%= a.title %>](<%= a.url %>) (last updated <time><%= a.updated.strftime('%Y-%m-%d') %></time>)<% end %> + * <time><%= a.published.strftime('%Y-%m-%d') %></time> - [<%= a.title %>](<%= a.url %>)<% if a.updated != a.published %> (last updated <time><%= a.updated.strftime('%Y-%m-%d') %></time>)<% end %> <% a.tags.each do |t| %><%= t.html %><% end %><% end %> |