Jekyll SASS Fonts
by John Vincent
Posted on April 26, 2017
Sass include 3rd party font libraries
This article describes how to sass include 3rd party fonts.
- bootstrap
- font awesome
- ionicons
Font Awesome
Download and unzip.
- move fonts folder to
source/fonts/font-awesome - move scss folder to
source/_sass/font-awesome
Ionicons
Download and unzip.
- move fonts folder to
source/fonts/ionicons - move scss folder to
source/_sass/ionicons
Bootstrap
Download SASS and unzip.
- move
assets/fontsfolder tosource/fonts/bootstrap - move
assets/stylesheetsfolder tosource/_sass/bootstrap-sass - move
assets/javascripts/bootstrap.min.jstosource/js/vendor/bootstrap.min.js
Jekyll Configuration
source/css/all.scss
---
---
$icon-font-path: "../fonts/bootstrap/";
$fa-font-path: "../fonts/font-awesome";
$ionicons-font-path: "../fonts/ionicons";
@import "bootstrap-sass/bootstrap";
@import "font-awesome/font-awesome";
@import "ionicons/ionicons";Note
-font-pathoverrides the default font files location.@importincludes library scss
Constructs file destination/all.css