user5889984
user5889984

Reputation:

How to integrate bootstrap into jekyll

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

Upvotes: 4

Views: 1618

Answers (1)

marcanuy
marcanuy

Reputation: 23982

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.

Upvotes: 2

Related Questions