Git Product home page Git Product logo

Comments (7)

deammer avatar deammer commented on July 19, 2024 1

Hey @jtfairbank! I am actually not sure why I did it that way instead of co-locating the queries 🤔 Maybe that involved some complexity that I didn't want to deal with when we were shipping the new site? My memory is terrible 😅 If you refactor it, please let me know what you find out!

from distributeaid.org.

jtfairbank avatar jtfairbank commented on July 19, 2024

Hey @deammer is there a specific reason you created the HomePage and AboutUsPage as templates instantiated in /gatsby-node.js? As opposed to creating them as pages in /src/pages and keeping the page query with the page, like Donate or Shipments?

Wondering if I can safely refactor them into pages.

from distributeaid.org.

jtfairbank avatar jtfairbank commented on July 19, 2024

Word up! And yeah that makes sense. You were in "get it launched" mode. 😆

from distributeaid.org.

jtfairbank avatar jtfairbank commented on July 19, 2024

@deammer figured it out! See the last 2 commits on #171 for the setup using Forestry => Gatsby Pages using page queries instead of Forestry => Gatsby Templates hooked up in gatsby-node.js. Please do leave me a note if you spot anything I didn't, though! :)

from distributeaid.org.

deammer avatar deammer commented on July 19, 2024

@jtfairbank #171 doesn't seem quite right, that's a dependency upgrade

from distributeaid.org.

jtfairbank avatar jtfairbank commented on July 19, 2024

@deammer whoops! #172

from distributeaid.org.

deammer avatar deammer commented on July 19, 2024

👏 very nice!

from distributeaid.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.