1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 18:32:50 +00:00

fixed html in preview

This commit is contained in:
2016-09-02 18:19:28 +00:00
parent 00d50fea7a
commit 6bf367f9be
4 changed files with 5 additions and 7 deletions

View File

@@ -13,8 +13,7 @@ export default class Preview extends React.Component {
<div class="date">
{posts[i].date}
</div>
<h1 class="intro" >{posts[i].title.toString()}</h1>
<p>{posts[i].intro.toString()}</p>
<div dangerouslySetInnerHTML={{__html : posts[i].title.toString() + posts[i].intro.toString()}} />
<p>
<Link class="link" to={`/post/${posts[i].category}/${posts[i].filename}`}>
continue reading <i class="fa fa-caret-right" aria-hidden="true"></i>