Jekyll development workflow using Gulp and Browsersync, compatible with Cloud9.
- myCoolBlog
|-- _app <-- contains all files to be processed by gulp
| |
| |-- images <-- images to be compressed
| |
| |-- scripts
| | + - main.js <-- script to be uglified
| |
| |-- styles sass to be processed and minified -
| + - main.scss <-- this file should @import all other scss files
|
|-- _includes <-- partial html templates
| + - disqus_comments.html
| + - footer.html
| + - head.html
| + - header.html
| + - icon-github.html
| + - icon-github.svg
| + - icon-twitter.html
| + - icon-twitter.svg
|
|-- _layouts <-- all of the layouts
| + - default.html
| + - page.html
| + - post.html
|
|-- _posts
| + - 2016-08-30-this-is-a-post.md
|
|-- _site <-- final build files all output to here
|
|-- about <-- an about page
| + - index.html
|
|-- css <-- the processed styles end up here
| + - main.min.css
|
|-- js <-- the processed scripts end up here
| + - main.min.js
|
|-- node_modules
|
+ - .gitignore
+ - _config.yml
+ - feed.xml
+ - Gemfile
+ - Gemfile.lock
+ - gulpfile.js <-- here the magic happens
+ - index.html <-- home page
+ - package.json
+ - README.md
gem install jekyll bundler
- may need 'sudo'bundle install
- ( installs gems )npm install
- ( installs node_modules )gulp default
will_app/styles
and place the
new file in the css
folder and in the _site/css
_app/scripts
and place the
new file in js
folder and in _site/js
_app/images
and place them
in the images
folder and in _site/images
jekyll build
will build the site to _site
_site
on localhost:8082_app/styles
will be built and injected
to be shown without a page refresh_app/scripts
or _app/images
will build and be injected in to _site
and the browser will
be automatically refreshed..html
files will be watched for changes and
will trigger a full jekyll build
and the browser will refresh
when finishedgulp production
willjekyll build
_site
The default jekyll theme Minima is used in this build. All the theme files which are normally not seen in a new jekyll build, ( due to the gem theme install ), have been copied to the relevent folders to be built and easily modified.