This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if (process.env.ENVIROMENT !== 'production') {
99
1010module . exports = {
1111 siteMetadata : {
12- title : 'Nodejs.dev Working Site ' ,
12+ title : 'Node.js ' ,
1313 } ,
1414 plugins : [
1515 'gatsby-plugin-catch-links' ,
Original file line number Diff line number Diff line change 1- /**
2- * Implement Gatsby's Node APIs in this file.
3- *
4- * See: https://www.gatsbyjs.org/docs/node-apis/
5- */
1+ exports . onCreatePage = async ( { page, actions } ) => {
2+ const { createPage } = actions
63
7- // You can delete this file if you're not using it
4+ // If this is the learn page, accept all following paths.
5+ if ( page . path . match ( / ^ \/ l e a r n / ) ) {
6+ page . matchPath = "/learn/*" ;
7+
8+ // Update the page.
9+ createPage ( page )
10+ }
11+ }
Original file line number Diff line number Diff line change @@ -8,35 +8,23 @@ type Props = {
88}
99
1010const Header = ( { siteTitle } : Props ) => (
11- < div
12- style = { {
13- borderBottom : '1px solid var(--gray2)' ,
14- marginBottom : '1.4rem' ,
15- } }
16- >
17- < div
11+ < nav className = "nav" >
12+ < ul
1813 style = { {
1914 margin : '0 auto' ,
20- maxWidth : 1024 ,
21- padding : '1.4rem 1.2rem' ,
15+ padding : '1.4rem 4.8rem' ,
2216 display : 'flex' ,
23- alignItems : 'center'
17+ alignItems : 'center' ,
18+ listStyle : 'none' ,
2419 } }
2520 >
26- < img src = { logo } style = { { width : '120px' , margin : '14px 24px 0 0' } } />
27- < h1 style = { { margin : 0 } } >
28- < Link
29- to = "/"
30- style = { {
31- color : 'var(--gray9)' ,
32- textDecoration : 'none' ,
33- } }
34- >
35- { siteTitle }
21+ < li >
22+ < Link to = "/" >
23+ < img src = { logo } alt = { siteTitle } style = { { height : '62px' , margin : '-6px 24px 0 0' } } />
3624 </ Link >
37- </ h1 >
38- </ div >
39- </ div >
25+ </ li >
26+ </ ul >
27+ </ nav >
4028)
4129
4230export default Header
You can’t perform that action at this time.
0 commit comments