Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patwalls committed Dec 25, 2018
1 parent 85fb312 commit 30b12f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

.lighter {
color: rgba(0, 0, 0, 0.54);
}

.page {
display: flex;
justify-content: flex-start;
Expand Down
2 changes: 1 addition & 1 deletion app/views/i/posts/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
- @posts.each do |post|
.post
.post-top
.date
.date.lighter
= post.published&.strftime("%B #{post.published&.day&.ordinalize}, %Y")
- if post.meta.exists?
.post-meta{ style: "background-image: url(#{post.meta.url})"}
Expand Down
2 changes: 2 additions & 0 deletions app/views/i/posts/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
= render "bio", user: @user
.article
.post-header
- if @post.published.present?
%time.lighter{ datetime: @post.published }= @post.published&.strftime("%B #{@post.published.day.ordinalize}, %Y")
%h1= @post.title
= raw @parsed.html_safe

0 comments on commit 30b12f7

Please sign in to comment.