Skip to content

geraldpereira/blog-template

Repository files navigation

blog-template

A blog's creation guide, from Jekyll base theme to Boostrap4. Using Grunt/Bower and hosted on GitHub pages.

Installation

  • sudo apt-get install ruby-full rubygems-integration
  • sudo gem install jekyll
  • sudo apt-get install nodejs npm
  • sudo npm install -g coffee-script
  • sudo npm install -g grunt-cli
  • sudo npm install -g bower

You may need to run the command ln -s /usr/bin/nodejs /usr/bin/node if you have the error /usr/bin/env: node: No such file or directory when running grunt or bower. nodejs/node-v0.x-archive#3911

Git

To save the blog

  • cd blog
  • git add -A
  • git commit -m "Blog save"
  • git push

To publish the blog

  • cd blog-gh-pages
  • git add -A
  • git commit -m "Blog pusblish"
  • git push

Jekyll and grunt

All of this is from the blog folder.

### Build

npm install

When you add new dependencies : grunt build:dev

To build for publishing : grunt build:dist --force and then check the result at http://127.0.0.1:8282/

Local test

jekyll serve and then go to http://127.0.0.1:4000/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published