(closes issue #95) This PR adds the section links, as defined in the settings editor / settings google doc, to the homepage nav.
I had to make a couple changes:
first, I moved the homepage from being a "gatsby page" (under src/pages/index.js) to being published via gatsby-node.js out of a template (src/templates/homepage.js)
I did the same for an AMP version (src/templates/homepage.amp.js), with some AMP-specific required additions
(closes issue #95) This PR adds the section links, as defined in the settings editor /
settings
google doc, to the homepage nav.I had to make a couple changes:
src/pages/index.js
) to being published viagatsby-node.js
out of a template (src/templates/homepage.js
)src/templates/homepage.amp.js
), with some AMP-specific required additionspageContext
(https://www.gatsbyjs.org/docs/creating-and-modifying-pages/#pass-context-to-pages)ArticleNav.js
as props; that component was already setup to include section links if they exist