Giter VIP home page Giter VIP logo

Comments (6)

akzhy avatar akzhy commented on June 3, 2024

Hi @twhite96 , this is a weird problem. It is due to a regex issue. The blog posts are queried based on their absolute path, ie all markdown files that contain "blog" are queried. Now the issue (I believe) is that you have named your project build_blog which has the word "blog" in it so all files in your project folder are queried.

So what you can do is either rename your project to something that doesn't contain "blog" in it, or I can update your code so that it strictly checks for content inside the contents folder.

from gatsby-starter-elemental.

twhite96 avatar twhite96 commented on June 3, 2024

Thanks @akzhy that fixed it. However there's some jank when refreshing the page. I added a gatsby plugin to reduce the flashing when loading the page when coming from light mode to dark mode and vice versa. I'm still trying to track down the jank bug though.

from gatsby-starter-elemental.

akzhy avatar akzhy commented on June 3, 2024

Hi, can you explain a bit more on what you mean by jank bug, also where does it occur ? @twhite96

from gatsby-starter-elemental.

twhite96 avatar twhite96 commented on June 3, 2024

@akzhy the page jumps when it is refreshed. I think it is an issue of me deleting the portfolio section. I can't take a look until probably tomorrow as I just moved and haven't setup everything yet. But if you clone my repo and load it you will get a sense of what I am talking about.

from gatsby-starter-elemental.

akzhy avatar akzhy commented on June 3, 2024

@twhite96 Hi, can you take a look at https://elemental.netlify.com/ and check if the issue exists there ? I had made some updates to it, the latest fix might be what you are looking for.

from gatsby-starter-elemental.

twhite96 avatar twhite96 commented on June 3, 2024

@akzhy there's a flash but no jumpiness. I still haven't set up my personal Mac to pull the updated yet but when I do I'll check it out.

from gatsby-starter-elemental.

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.