Skip to content

Commit

Permalink
app: display creation date
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Oct 11, 2012
1 parent 150f196 commit 238ad62
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function loadPost(filename) {
slug: slug,
title: title,
ctime: stat.ctime,
created_at: stat.ctime.toUTCString(),
content: rendered
};

Expand Down
8 changes: 8 additions & 0 deletions public/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions views/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ block content
= ' '
span.rate(data-id=post.id)
span.front -
= ' '
span.date= post.created_at
- })
2 changes: 2 additions & 0 deletions views/post.jade
Original file line number Diff line number Diff line change
Expand Up @@ -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.