diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-03 20:57:36 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-03 20:57:36 -0500 |
commit | a5f4e1ed470b96c1f97f3827fe07d530c53f0e5c (patch) | |
tree | c4ab7430b9c2f54e9ab3ac10f62f0321af6578de /bin/index.md.erb | |
parent | 5449dca686d7bdbd5f09acd4e9fd8647535acde9 (diff) |
I hate URL handling.
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 ce5e030..34f8677 100644 --- a/bin/index.md.erb +++ b/bin/index.md.erb @@ -4,4 +4,4 @@ class: "index" --- <% @pages.sort_by{|a|a.published}.reverse.each do |a| %> - * <a href="<%= a.url %>" title="Published on <%= a.published.strftime('%Y-%m-%d') %><% if a.updated != a.published %> (updated on<%= a.updated.strftime('%Y-%m-%d') %>)<% end %>"><%= a.title %></a><span><% a.tags.each do |t| %><%= t.html %><% end %></span><% end %> + * <a href="<%= @url.route_to(a.url) %>" title="Published on <%= a.published.strftime('%Y-%m-%d') %><% if a.updated != a.published %> (updated on<%= a.updated.strftime('%Y-%m-%d') %>)<% end %>"><%= a.title %></a><span><% a.tags.each do |t| %><%= t.html %><% end %></span><% end %> |