File tree 3 files changed +5
-0
lines changed 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ var BlogLayout = React.createClass({
22
22
< BlogSidebar site = { site } page = { page } />
23
23
< div className = "inner-content" >
24
24
< h1 > { page . title } </ h1 >
25
+ < p > { new Date ( page . date ) . toLocaleDateString ( ) } by { page . byline } </ p >
26
+ < hr />
25
27
< Marked > { page . content } </ Marked >
26
28
</ div >
27
29
</ section >
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ title: "GraphQL: A data query language"
3
3
layout : ../_core/BlogLayout
4
4
permalink : /blog/graphql-a-query-language/
5
5
date : 14 Sep 2015
6
+ byline : " Lee Byron"
6
7
---
7
8
8
9
<script data-inline >
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ var BlogIndex = React.createClass({
26
26
{ posts . map ( post =>
27
27
< div className = "inner-content" key = { post . permalink } >
28
28
< h1 > < a href = { post . url } > { post . title } </ a > </ h1 >
29
+ < p > { new Date ( post . date ) . toLocaleDateString ( ) } by { post . byline } </ p >
30
+ < hr />
29
31
< Marked url = { post . url } > { post . content } </ Marked >
30
32
</ div >
31
33
) }
You can’t perform that action at this time.
0 commit comments