nielsenramon / chalk

Chalk is a high quality, completely customizable, performant and 100% free Jekyll blog theme.
http://chalk.nielsenramon.com
MIT License
1.23k stars 443 forks source link

Failed to publish correctly / Stylesheets ... etc missing #205

Open JunliXiao opened 4 years ago

JunliXiao commented 4 years ago

Hi there, I am quite a newbie into GitHub and web development. I would be very thankful for your patiently looking into my questions...

I am just learning to deploy static websites on GitHub Pages. I have no problem deploying with Jekyll and supported themes or pure HTML, from local client pushing to my GitHub repo. But for this theme - chalk, I am not sure if I use it correctly. My approach is pretty much: create a new repo first, git clone the chalk url to local and then add to it my repo url as origin. So far the npm run setup and npm run local commands work fine. But when using npm run publish, without editing any files, I found in the gh-pages branch lacking many files, like _config.yml and many style sheets. I assume it to be abnormal, right? Since lacking those files makes the pages look ugly and obviously incomplete. That's sort of the whole story, I didn't play much with the files or git commands.

Thanks for reading, and is there anyone having any idea about the situation?
Sincerely,

ortonbabb commented 4 years ago

Hi, I'm not sure if you've figured out the situation yet, but the gh-pages branch will only have the compiled site files. These are equivalent to the files that are found in _site from the master branch (compiled also when you do npm run local). If you switch back to master you will find all the original files.

I also had issues with publishing using the npm run publish method. It would be nice if someone more experienced than me can give a full explanation on how publishing works. So far, my hacky solution has been to copy and paste the compiled site files into a separate repository and push that to Github.