-
This is likely a very basic question, but how do I add a page in addition to the intro/projects/about/contact ones? I couldn't figure out how to create a new one. I'd also like to be able to switch around the order of the pages. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi! Not a basic question so thanks for asking. The theme is most often just used by editing the files inside https://github.com/LekoArts/gatsby-starter-portfolio-cara/tree/master/src/%40lekoarts/gatsby-theme-cara/sections Anyways, I created a demo repo for you: https://github.com/lekoarts-demos/cara-additional-pages Basically you want to shadow the template that creates the homepage, add a new section and then add it to the homepage. |
Beta Was this translation helpful? Give feedback.
-
Related to reordering, whenever I move around the Projects section, I notice the sky-blue background doesn't move with it. I think I've narrowed it down to this line where the offset is hardcoded in (https://github.com/LekoArts/gatsby-themes/blob/main/themes/gatsby-theme-cara/src/components/projects.tsx#L16). Shouldn't this be a relative offset depending on what offset is passed into the component? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hi!
Not a basic question so thanks for asking. The theme is most often just used by editing the files inside https://github.com/LekoArts/gatsby-starter-portfolio-cara/tree/master/src/%40lekoarts/gatsby-theme-cara/sections
Anyways, I created a demo repo for you: https://github.com/lekoarts-demos/cara-additional-pages
This should show what you need to know: lekoarts-demos/cara-additional-pages@dbfd6ab
Basically you want to shadow the template that creates the homepage, add a new section and then add it to the homepage.