This repository host my personal blog built with Jekyll. Much more to come, stay tuned !
gem install jekyll
npm install
to install all Node.js dependanciesnpm install -g grunt-cli
(as root or with sudo)apt-get install optipng libjpeg libjpeg-progs
to install optipng and jpegtran. On other plateforms, see respectives sites to installation instructionsgrunt
to lauch the optimization of assets (css / js / images) and site building with JekyllYou can also use the grunt server
command to watch for changes in your files or posts and automatically rebuild what's need to be rebuilt and serve it on the 8000 port (accessible on the address http://127.0.0.1:8000/).
You can use Github to automatically update your site on your server when you push a commit to your repository.
To do so, change the port in the updater.js
to something random and add a WebHook URL in your Github repo to your server IP (with the right port). This will do a request every time you push a commit and update the dist repository on your server.
Don't forget to lauch the updater.js
file with the command node updater.js
.
If your blog is behind Cloudflare CDN this script can also purge the website cache once the site rebuilt. To do so, simply add your CloudFlare email, token and domain in the updater.js
file