Skip to content

Commit

Permalink
fixed latest post preview when the preview contains html code
Browse files Browse the repository at this point in the history
  • Loading branch information
le4ker committed Aug 29, 2015
1 parent feb4960 commit 57d0fd0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion _includes/latest-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h4> <strong> {{ post.date | date_to_string }} </strong>
<small> <a href="{{ post.url }}#disqus_thread">Comments</a></small>
</h4>

{{ post.content | truncatewords: site.post-preview-words | markdownify }}
{{ post.content | truncatewords: site.post-preview-words | strip_html | markdownify }}

<a href="/blog/index.html"><h4><strong>View more posts</strong></h4></a>

Expand Down
19 changes: 11 additions & 8 deletions css/grayscale.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,9 @@ p {
}
}

ol,
ul {
text-align: center;
margin: 0 0 35px;
font-size: 20px;
line-height: 1.5;
list-style-position: inside;
}
nop {

}

a {
color: #fed136;
Expand All @@ -77,6 +71,15 @@ a:focus {
font-weight: 400;
}

.personal-list {
text-align: center;
margin: 0 0 35px;
font-size: 20px;
line-height: 1.5;
list-style-position: inside;
}


.navbar-custom {
margin-bottom: 0;
border-bottom: 1px solid rgba(255,255,255,.3);
Expand Down

0 comments on commit 57d0fd0

Please sign in to comment.