Add Gist example and fix /about bug. Closes #6

main
Mike Fix 7 years ago
parent 5e637a896b
commit 7c2cb5a4cd

@ -17,7 +17,7 @@ export default () => (
<p className="mb1 mt2">There are a few different ways to import code into Carbon:</p> <p className="mb1 mt2">There are a few different ways to import code into Carbon:</p>
<ul className="mt0 mb3"> <ul className="mt0 mb3">
<li>Drag a file into the editor</li> <li>Drag a file into the editor</li>
<li>Append a GitHub gist id to the url (<a className="link" href="#">example</a>)</li> <li>Append a GitHub gist id to the url (<a className="link" href="/0db00e81d5416c339181e59481c74b59">example</a>)</li>
<li>Paste your code directly</li> <li>Paste your code directly</li>
</ul> </ul>
<h4 className="mb0">Customization</h4> <h4 className="mb0">Customization</h4>

@ -20,6 +20,9 @@ app.prepare()
server.use(morgan('tiny')) server.use(morgan('tiny'))
server.get('/about', (req, res) =>
app.render(req, res, '/about'))
// if root, render webpage from next // if root, render webpage from next
server.get('*', (req, res) => server.get('*', (req, res) =>
app.render(req, res, '/', req.query)) app.render(req, res, '/', req.query))

Loading…
Cancel
Save