GithubHelp home page GithubHelp logo

Comments (1)

huffn avatar huffn commented on May 26, 2024

Edit: My cache hadn't cleared when I was testing if it would work for empty folders with a subdirectory. The isDirectChild change doesn't fix the folders from not being generated if there aren't any markdown files. I'll play around a little more to see if there is another spot where it is filtering out no direct children for folder pages.

In FolderContent.tsx I was able to fix this problem by modifying the allPagesInFolder filter by changing the return from return prefixed && isDirectChild to return prefixed || isDirectChild

The isDirectChild check is filtering out any files in subfolders. I was having a similar bug since the description for Folder and Tag Listings claims:

Quartz will generate an index page for all the pages under that folder. This includes any content that is multiple levels deep.

But my folder pages first returned the 404 since I didn't have any files in the higher up directories. I ended up putting a markdown file in that folder, but it still wasn't showing the sub directories. So this fix makes sure that subdirectories aren't filtered out when the folder pages are generated.

from quartz.

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.