Permalink
Browse files

app: display creation date

  • Loading branch information...
1 parent 150f196 commit 238ad629d6dd3261361d04047baabcb0a0356a88 @indutny committed Oct 11, 2012
Showing with 13 additions and 0 deletions.
  1. +1 −0 app/posts.js
  2. +8 −0 public/css/main.css
  3. +2 −0 views/index.jade
  4. +2 −0 views/post.jade
View
@@ -26,6 +26,7 @@ function loadPost(filename) {
slug: slug,
title: title,
ctime: stat.ctime,
+ created_at: stat.ctime.toUTCString(),
content: rendered
};
View
@@ -76,6 +76,14 @@ footer {
font-size: 15px;
}
+span.date {
+ font-size: 11px;
+}
+
+div.date {
+ text-align: right;
+}
+
section.post.big .rate {
position: absolute;
right: -60px;
View
@@ -8,4 +8,6 @@ block content
= ' '
span.rate(data-id=post.id)
span.front -
+ = ' '
+ span.date= post.created_at
- })
View
@@ -8,4 +8,6 @@ block content
include rate
section.post-content
!= post.content
+ div.date
+ = 'Created at: ' + post.created_at
div#disqus_thread

0 comments on commit 238ad62

Please sign in to comment.