-
-
Notifications
You must be signed in to change notification settings - Fork 15
Custom CSS and JavaScript
Pablo Melchor edited this page Dec 30, 2017
·
1 revision
All our custom css is in sass/_csl.css
. That Sass partial is included in assets/css/main.scss
.
Our custom JavaScript is in assets/js/_csl.js
.
Our tweaked uglify npm script in package.json
takes care of including our code in js/main.min.js
.
Note: unlike the theme's CSS, which is built server-side in Github Pages, the theme's JavaScript has to be built locally. You need to have npm installed and run the following in your citation-style-language.github.io folder:
npm install
This installs all the required node packages, as specified in package.json
.
npm run build:js
This assembles and minifies js/main.min.js
.