jackyzha0 / quartz

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

Capitalization changes in filenames break the online site. #38

Closed Sp-cy closed 2 years ago

Sp-cy commented 2 years ago

Hola Jacky!

Describe the bug I created some pages in obsidian than where capitalized but then i changed it to lowercase. obsidian even helps you updating the links.

This broke the online site. I have checked that all pages have front matter but I find no way to update my online graph no matter how many commits I make.

The page names are the same just the first letter of each word was upper case.

To Reproduce

You could change the capitalization in any page title and see if it breaks the links and graph in the online site.

Here's my repo. https://github.com/Sp-cy/quartz Expected behavior If capitalization changes in files , the site should reflect and respond to it.

Screenshots My digital garden

You can see the broken site. Desktop (please complete the following information):

Additional context pages can be found in the live site with the first upper cased letter when it gives 404 in the links.

jackyzha0 commented 2 years ago

Hmm looks like your GitHub repo is not up to date? Your notes are still capitalised in the repo here: https://github.com/Sp-cy/quartz/tree/hugo/content/notas

Sp-cy commented 2 years ago

This is weird. Checking my local copy of the repo everything is lowercase.

image

there's nothing to sync with remote when I check in Github desktop and VScode. I guess this is a git/windows issue I need to research on my own and not a Quartz bug. Thanks for your help.

jackyzha0 commented 2 years ago

I ran into something weird today that might be it? I think certain versions of git are not case sensitive so changing case will not cause git to pick it up. Try doing git config core.ignorecase true and see if that helps?

Sp-cy commented 2 years ago

Ah! Found some info on the issue: https://github.com/desktop/desktop/issues/2672

Not Quartz related, sorry for posting this here. I run several Hugo sites and somehow this is the first time I ran into this problem.

Love you project, Jacky. Keep it up. I'm really interested in the upcomming tag implementation since i thing it's a good way to taxonomize the site besides de maps of content. With tags and search we should have everything we need. May i use the opportunity of you attention to request a revision on the head tags? I would like the default twitter card and open graph implementations that let you have a social sharing preview image. Just to make the shared links more attractive when there's media to display. I have implemented it poorly myself.

Adios Jacky! Talk to you soon.

jackyzha0 commented 2 years ago

That would definitely be really useful! Feel free to file an issue and I'll try my best :')