Skip to content

Commit

Permalink
Added short footer to blog posts
Browse files Browse the repository at this point in the history
It just contains the datetime the post was written. Still not a real footer.

refs #11
  • Loading branch information
hatkirby committed Jul 3, 2018
1 parent a83cd5b commit 77c3c18
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/assets/stylesheets/main/entries.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@
}
}

#blog-footer {
background-color: #f8f8f8;
border-width: 1px 0 1px 0;
border-style: solid;
border-color: #DDD;
color: #777;
padding: .75em 1em;
font-size: 0.9em;
margin-bottom: 1em;

time {
border-bottom: 1px dotted #777;
}
}

#stream-post {
h2 {
background-color: #98FB98;
Expand Down
4 changes: 4 additions & 0 deletions app/views/blogs/show.html.haml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
.breadcrumb= link_to "← Back to home page", root_path
= render @blog
%footer#blog-footer
This entry was posted on
= succeed "." do
%time= @blog.created_at.strftime("%B #{@blog.created_at.day.ordinalize} %Y at %-I:%M:%S%P")

0 comments on commit 77c3c18

Please sign in to comment.