Permalink
Please sign in to comment.
Showing
with
102 additions
and 67 deletions.
- +2 −1 .gitignore
- +25 −1 create_structure.js
- +2 −0 local.sh
- +8 −2 package.json
- +2 −4 templates/_template.jsx
- +46 −45 templates/lang/_template.jsx
- +1 −1 wiki-gh-pages
- +1 −1 wiki-master
- +15 −12 wrappers/md.jsx
3
.gitignore
26
create_structure.js
100644 → 100755
2
local.sh
10
package.json
6
templates/_template.jsx
100644 → 100755
91
templates/lang/_template.jsx
100644 → 100755
2
wiki-gh-pages
| @@ -1 +1 @@ | ||
| -Subproject commit 4798402429d96d7248ad39c49b6c17a8f5aeac16 | ||
| +Subproject commit 643a5290285115f57c660e4c9bd9b179f8aa8708 |
2
wiki-master
| @@ -1 +1 @@ | ||
| -Subproject commit 85c028b48247cf791201b955dc357a91c2f64758 | ||
| +Subproject commit b756eb51fd4e120ba0ed66a5503d373d37bad262 |
27
wrappers/md.jsx
100644 → 100755
| @@ -1,20 +1,23 @@ | ||
| -import React from 'react'; | ||
| -import DocumentTitle from 'react-document-title'; | ||
| -import typography from 'utils/typography'; | ||
| -const { rhythm } = typography; | ||
| +import React from 'react' | ||
| +import DocumentTitle from 'react-document-title' | ||
| +import { config } from 'config' | ||
| module.exports = React.createClass({ | ||
| - render: function() { | ||
| - var post, rhythm; | ||
| - post = this.props.page.data; | ||
| + propTypes () { | ||
| + return { | ||
| + route: React.PropTypes.object, | ||
| + } | ||
| + }, | ||
| + render () { | ||
| + const post = this.props.route.page.data | ||
| return ( | ||
| - <DocumentTitle title={`${post.title} | ${this.props.config.siteTitle}`}> | ||
| + <DocumentTitle title={`${post.title} | ${config.siteTitle}`}> | ||
| <div className="markdown"> | ||
| <h1>{post.title}</h1> | ||
| - <div dangerouslySetInnerHTML={{__html: post.body}}/> | ||
| + <div dangerouslySetInnerHTML={{ __html: post.body }}/> | ||
| </div> | ||
| </DocumentTitle> | ||
| - ); | ||
| - } | ||
| -}); | ||
| + ) | ||
| + }, | ||
| +}) |
0 comments on commit
65ecc5d