rsnext/examples/with-netlify-cms/pages/index.js
Józef Piecyk d94d2700f9 Netlify cms example (#8949)
* add netlifycms example

* Updated everything

* Moved the layout out of _app

* Updated next to latest

* applied prettier and linter

* Removed unrequired files

* Moved to with-netlify-cms

* updated readme to reflect the new name

* Added license field
2019-10-19 18:46:49 -05:00

17 lines
342 B
JavaScript

import Layout from '../components/layout'
import { attributes, html } from '../content/home.md'
const Home = () => (
<Layout>
<h1>{attributes.title}</h1>
<div dangerouslySetInnerHTML={{ __html: html }} />
<style jsx>{`
h1,
div {
text-align: center;
}
`}</style>
</Layout>
)
export default Home