-
Notifications
You must be signed in to change notification settings - Fork 66
External CSS and JS
Utkarsh Verma edited this page Apr 22, 2018
·
8 revisions
You can freely customize Dream Plus by using your own CSS and JS files externally. It's quite easy and convenient.
To use this feature, do the following:
- Place your external CSS or JS within the
static/css
orstatic/js
directory of your Hugo site folder respectively.
They shouldn't necessarily be in the
js
orcss
folders since their paths will be specified in the next step.
- Specify where your external files are through the
customCSS
orcustomJS
config variables(inconfig.toml
). The paths should be provided relative to thestatic
directory. For example:
customCSS = ["css/dracula.css"]
customJS = ["js/twemoji.min.js"]
That's it. After doing this, your externally provided files will be loaded within the <HEAD>
tag.