Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making my quartz website using GitHub Pages #1663

Closed
Brayden-Zhang opened this issue Dec 21, 2024 · 5 comments
Closed

Making my quartz website using GitHub Pages #1663

Brayden-Zhang opened this issue Dec 21, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Brayden-Zhang
Copy link

Brayden-Zhang commented Dec 21, 2024

I'm trying to get my quartz website hosted at https://brayden-zhang.github.io/blogs. However, I already have an existing github pages website at https://brayden-zhang.github.io/ (not at https://brayden-zhang.github.io/blogs though. I would like to have both pages deployed, so that https://brayden-zhang.github.io/blogs takes me to my quartz website.
https://github.com/Brayden-Zhang/blogs is my quartz website.

According to the hosting instructions, I think this should be possible, but following the instructions just gives me a 404 error when trying to access my subpage.
Is there a limitation to how sub-pages work or am I missing something?

@Brayden-Zhang Brayden-Zhang added the bug Something isn't working label Dec 21, 2024
@aarnphm
Copy link
Collaborator

aarnphm commented Dec 21, 2024

you have to setup it via subdomain unfortunately instead of apex domain path iirc.

@saberzero1
Copy link
Collaborator

GitHub Pages are deployed to https://<github-username>.github.io/<repository-name> by default.

The only exception is a repository named <github-username>.github.io. This can lead to problems if you have a path shared with a repository.

https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages#using-a-custom-domain-across-multiple-repositories

Having said all that, can't you just link to your Quartz deploy from your <github-username>.github.io repository?

If not, consider buying a domain name (can be done for a few dollars a year nowadays.) You can then set up a different subdomain for Quartz.

@Brayden-Zhang
Copy link
Author

Brayden-Zhang commented Dec 22, 2024

I think the issue is that my https://<github-username>.github.io/quartz isn't being deployed in the first place.
I did make sure to add the workflows/deploy.yml file.
image
image

For my quartz website (the first image above), it's not being deployed. But for my second website (second image), It is being deployed.

I just tried making a new clone of the default quartz repo and it doesn't seem to deploy using github pages either.

@saberzero1
Copy link
Collaborator

I think the issue is that my https://<github-username>.github.io/quartz isn't being deployed in the first place.
I did make sure to add the workflows/deploy.yml file.
image
image

For my quartz website (the first image above), it's not being deployed. But for my second website (second image), It is being deployed.

I just tried making a new clone of the default quartz repo and it doesn't seem to deploy using github pages either.

Is this your repo? https://github.com/Brayden-Zhang/blog

Because that does not have the deploy.yml workflow and is instead set up to use Jekyll.

Please use this instead: https://quartz.jzhao.xyz/hosting#github-pages

@Brayden-Zhang
Copy link
Author

Thanks! I had put the deploy.yml in the quartz folder 🤦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants