Comments (1)
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)
- Markdown ==highlight== doesn't work with `code` or [links](http://example.com)
- Many `Failed to process` errors preventing build HOT 1
- Ability to have readers leave comments HOT 7
- Images in collapsible callouts do not get hidden HOT 2
- MathJax rendering as code block in callout title
- How to exclude tags in body HOT 1
- Zen mode
- Explorer `filterFn` does not see `index.md` files in folder children HOT 1
- Markdown renders improperly in TOC
- Is it a better choice to use canvas instead of svg for force-directed graphs? HOT 4
- Is there a way to use quartz's template in an existing repository, or do I need a migration? HOT 13
- Prevent Clicks In Quick Succession (Double Clicks)
- Docker compose? HOT 2
- Integrating pdfobject.js to allow quartz to serve PDF files, just like obsidian can do with additional plugins. HOT 2
- Block math does not render inline HOT 2
- Popover does not recognize Wikilinks anchors containing Japanese text
- Access current style from tsx file HOT 1
- Adding inline code syntax highlighting
- Update link to quartz/path.test.ts
- [Feature request] Generate permanent link (redirect html) based on id/uid/custom-property in frontmatter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quartz.