jackyzha0 / quartz

🌱 a fast, batteries-included static-site generator that transforms Markdown content into fully functional websites
https://quartz.jzhao.xyz
MIT License
6.81k stars 2.46k forks source link

Link Bomb In Explorer When Number of Notes is Large #1087

Open ChenghaoMou opened 5 months ago

ChenghaoMou commented 5 months ago

Thanks for this great project!

Is your feature request related to a problem? Please describe.

A simple comparison between explorer enabled and disabled:

bash -c "du -sh ./public"
407M    ./public
bash -c "du -sh ./public"
 99M    ./public

A quick look reveals that each of the generated page contains all the links in the explorer. I have more than 1k notes. Is there any way to prevent this or reduce the size?

Describe the solution you'd like I know it might be too much for a static site generator, but I am all ears for any solutions, including the ones on how I should structure notes/blogs instead.

Describe alternatives you've considered Disable the explorer would significantly reduce the size, but it makes the site less navigable.

Additional context I can provide links to my blob/repo if needed (or you can just go to my profile). I don't want to include it here to attract the wrong bots.

jackyzha0 commented 5 months ago

Hm we can probably have an option to lazily fetch explorer content @benschlegel wdyt? I remember we talked about this at some point haha

benschlegel commented 5 months ago

Hmmm definitively sounds possible in theory, but probably would require some testing to see if/how easy it is to implement this, cool idea for sure!