Skip to content

Commit

Permalink
Modularize blog layout into files
Browse files Browse the repository at this point in the history
  • Loading branch information
lamosty committed Sep 7, 2015
1 parent ee258eb commit f5a9382
Show file tree
Hide file tree
Showing 20 changed files with 5 additions and 1 deletion.
Empty file modified .gitignore 100644 → 100755
Empty file.
Empty file modified LICENSE 100644 → 100755
Empty file.
Empty file modified README.md 100644 → 100755
Empty file.
Empty file modified footer.php 100644 → 100755
Empty file.
Empty file modified header.php 100644 → 100755
Empty file.
Empty file modified index.php 100644 → 100755
Empty file.
Empty file modified package.json 100644 → 100755
Empty file.
Empty file modified server.js 100644 → 100755
Empty file.
Empty file added src/components/Article.js
Empty file.
Empty file.
Empty file added src/components/Footer.js
Empty file.
Empty file added src/components/Header.js
Empty file.
Empty file.
Empty file added src/components/Sidebar.js
Empty file.
Empty file added src/containers/App.js
Empty file.
Empty file added src/containers/LexiTheme.js
Empty file.
6 changes: 5 additions & 1 deletion src/index.js 100644 → 100755
@@ -1,7 +1,7 @@
import React, { Component } from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import { Router, Route, DefaultRoute } from 'react-router';
import App from './containers/App';

const history = new BrowserHistory();
Expand All @@ -20,6 +20,10 @@ class Root extends Component {
return (
<Router history={history}>
<Route path="/" component={App}>
<DefaultRoute component={ArticlesListingPage} />
<Route path="about" component={AboutPage} />
<Route path="articles" component={ArticlesListingPage} />
<Route path="/:year/:month/:name" component={ArticlePage} />
</Route>
</Router>
);
Expand Down
Empty file modified src/index.template.html 100644 → 100755
Empty file.
Empty file modified style.css 100644 → 100755
Empty file.
Empty file modified webpack.config.js 100644 → 100755
Empty file.

0 comments on commit f5a9382

Please sign in to comment.