Code Monkey home page Code Monkey logo

jekyll-bootstrap-sass's Introduction

Jekyll Bootstrap Sass

A plugin to add the Twitter Bootstrap framework to your Jekyll site.

Build Status

Installation

Add the following to your site's Gemfile:

gem 'jekyll-bootstrap-sass'

And add the following to your site's _config.yml file:

gems:
  - jekyll-bootstrap-sass

Usage

Create a .scss file (e.g., assets/style.scss), with the following:

---
---

@import 'bootstrap';

// (Your custom CSS Here)

When your site is built, Jekyll will automatically add the Bootstrap framework before it renders your site's css. In the above example, the resulting file would be assets/style.css with Bootstrap's CSS followed by your own.

Assets

By default, Jekyll Bootstrap SaSS will simply make the @import 'bootstrap'; directive available to your custom stylesheets so that you can more easily include Bootstrap's CSS.

If you would like to use Bootstrap's static assets (e.g., fonts, javascripts), you'll need to add the following to your site's _config.yml:

bootstrap:
  assets: true

This will create /assets/fonts/bootstrap and assets/javascripts/bootstrap folders in the generated site, which you can include in your site's header as you would any other javascript file or font.

If font's aren't loading properly, you may need to add the following before the import directive:

$icon-font-path: "{{ site.github.url }}/assets/fonts/bootstrap";

Specifying the Bootstrap version

Jekyll-bootstrap-sass relies on official bootstrap-sass Ruby gem. To specify the version of Bootstrap used, simply specify the bootstrap-sass gem version in your Gemfile.

jekyll-bootstrap-sass's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.