mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-07 16:06:12 +02:00
feat: persist layout state across pages
This commit is contained in:
+3
-4
@@ -1,19 +1,18 @@
|
||||
import React from "react"
|
||||
import React, { Fragment } from "react"
|
||||
import { Link } from "gatsby"
|
||||
|
||||
import { Layout } from "../components/Layout"
|
||||
import { SEO } from "../components/SEO"
|
||||
|
||||
function IndexPage() {
|
||||
return (
|
||||
<Layout>
|
||||
<Fragment>
|
||||
<SEO title="Home" />
|
||||
<h1>Hi people</h1>
|
||||
<p>Welcome to your new Gatsby site.</p>
|
||||
<p>Now go build something great.</p>
|
||||
<div style={{ maxWidth: `300px`, marginBottom: `1.45rem` }}></div>
|
||||
<Link to="/page-2/">Go to page 2</Link>
|
||||
</Layout>
|
||||
</Fragment>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user