Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jekyll and github - how to update the blog post?

Tags:

github

jekyll

Good day.

Could you help me with a little problem I am experiencing.

I have a jekyll blog on the github. The problem is after I updated my old post, committed and pushed it, the blog post doesn't show any changes, but I see that the commit has been pushed successfully.

If I run jekyll --server locally, it shows updated blog post and it doesn't report any errors. I have no jekyll plugins installed.

What am I doing wrong or misunderstanding? Thanks a lot.


Added by Nawaz:

I'm facing exactly same problem. My I pushed added one markdown post and few css, and modified layouts and includes, then I pushed them to github. It is done successfully. My github is showing all the changes in the repository, but the github blog (i.e the generated html posts out of markdown) are still same. No change to them at all. It is showing some posts which doesn't even exist in the repository. But when I do jekyll --server locally, then every update is being shown on my (local) blog hosted at http://localhost:4000.

Please help me!

like image 598
varnie Avatar asked Aug 17 '12 05:08

varnie


People also ask

How do I update my Jekyll?

Stay Up to Date If you followed our setup recommendations and installed Bundler, run bundle update jekyll or simply bundle update and all your gems will update to the latest versions. If you don't have Bundler installed, run gem update jekyll . The procedure is similar if you use the github-pages gem.

Can I edit my website after publishing on GitHub?

You absolutely can yes but how exactly to depends on what you are using to deploy your site, for GitHub pages as an example it's as simple as adding the new code to the repository while other deployment tools will vary.

How do I update my GitHub Pages website?

Tips and tricks. If you want to edit or update your website, go to your Repository, select Upload files, and drag and drop your new updated file, enter a commit message, and click the button Commit changes. It will replace the previous one.


1 Answers

If your Jekyll site is not rendering properly after you push it to GitHub, it's useful to run Jekyll locally so you can see any parsing errors. In order to do this, you'll want to use the same version that we use.
GitHub's Pages servers currently use Jekyll 0.11.0 with Liquid 2.2.2, and run it using this command:
$ jekyll --pygments --safe

More info

like image 183
Snger Avatar answered Oct 17 '22 22:10

Snger