aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cabo <david@calibea.com>2011-09-19 01:13:28 +0200
committerDavid Cabo <david@calibea.com>2011-09-19 01:13:28 +0200
commit73ceb164768f4ae9d0b7c77e6b6ebd746421efc3 (patch)
tree5b31d9e45a96f6e168e45c8299aeee0a56d79dc7
parentcb098ef4ff0b504b43121d60aab7108c429ad7c6 (diff)
Use post timestamp as link anchor when displaying the Blog page. Fixes #189
-rw-r--r--app/views/general/blog.rhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/general/blog.rhtml b/app/views/general/blog.rhtml
index 5d38874c3..834676f82 100644
--- a/app/views/general/blog.rhtml
+++ b/app/views/general/blog.rhtml
@@ -49,7 +49,7 @@
<div id="blog">
<% for item in @blog_items: %>
<div class="blog_post">
- <h2><a href="<%=item['link']%>"><%=h item['title'] %></a></h2>
+ <h2 id="<%= Time.parse(item['pubDate'][0]).to_i %>"><a href="<%=item['link']%>"><%=h item['title'] %></a></h2>
<p class="subtitle"><%= _("Posted on {{date}} by {{author}}", :date=>simple_date(Time.parse(item['pubDate'][0])), :author=>item['creator']) %></p>
<div><%= item['encoded'] %></div>
<p><em>