4

To the default minima template how will you integrate bootstrap? What I did is download bootstrap sass version. Added bootstrap folder and scss file to _sass folder. Then added two lines to asset/main.scss files to import bootstrap and variables.scss Do I need to add any js, min.css lines to head portion? Thanks

1 Answers1

2

For Jekyll to compile bootstrap sass files:

  • Add javascript before the closing tag
  • Add css/styles.scss (with triple dashes at the beginning), it will generate css/styles.css
  • Add it to the <head> section

I've wrote a detailed guide to customize Bootstrap 4 in Jekyll.

marcanuy
  • 23,118
  • 9
  • 64
  • 113
  • Can you show how to add bootstrap 3 as 4 in developing state –  Apr 29 '17 at 06:42
  • The same but you need to use the sass version of Bootstrap (https://github.com/twbs/bootstrap-sass) In BS4 it is the default. – marcanuy Apr 29 '17 at 18:33