From 4cacff788223ba7b202564ce4b02f98291998aba Mon Sep 17 00:00:00 2001 From: Junv Zhao Date: Mon, 23 Nov 2015 23:00:28 +0800 Subject: [PATCH] #35 styling update --- app/assets/stylesheets/published_posts/published_post.scss | 2 +- app/views/published_post/show.html.erb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/published_posts/published_post.scss b/app/assets/stylesheets/published_posts/published_post.scss index f5793c9..de09bff 100644 --- a/app/assets/stylesheets/published_posts/published_post.scss +++ b/app/assets/stylesheets/published_posts/published_post.scss @@ -37,7 +37,7 @@ h4, h5, h6 { @include sans-serif; - font-weight: 800; + font-weight: 600; } a { diff --git a/app/views/published_post/show.html.erb b/app/views/published_post/show.html.erb index be374be..c8b0a9b 100644 --- a/app/views/published_post/show.html.erb +++ b/app/views/published_post/show.html.erb @@ -1,5 +1,7 @@ <%- if @post.content.present? %> - <%= @post.content.html_safe %> +
+ <%= @post.content.html_safe %> +
<%- else %>

暂时无法阅读该文章, 请点击<%= link_to '原文', @post.url %>浏览