pelican-themes
pelican-themes copied to clipboard
gum: Add optional extra CSS and JS resources
With this change, the gum
theme can be tweaked for style and behavior without forking it:
-
Create a static css or js file, eg "content/static/foo.css" and "content/static/foo.js" in your site tree.
-
In pelicanconf.py, make sure the directory containing your file is included in
STATIC_PATHS
. -
Add to pelicanconf.py:
THEME = 'gum'
CUSTOM_CSS_FILES = ['static/foo.css']
CUSTOM_JS_FILES = ['static/foo.js']
These will be loaded after the default Gum styles and scripts.
Remotely hosted assets can be supported as well, via CUSTOM_CSS_URLS
and CUSTOM_JS_URLS
.
I'm using this on my own website to eg override a few colors and tag cloud text styles: https://slinkp.com/