Add css includes
This commit is contained in:
parent
1c532fabb8
commit
092bc21064
|
@ -141,9 +141,12 @@ def crater(prod=False):
|
|||
# copy images/css/js from theme
|
||||
shutil.copytree(f"themes/{config['theme']}/static/images", 'public/images', dirs_exist_ok=True)
|
||||
shutil.copytree(f"themes/{config['theme']}/static/css", 'public/css', dirs_exist_ok=True)
|
||||
if 'css_includes' in config:
|
||||
for include in config['css_includes']:
|
||||
copy_file(f"themes/{config['theme']}/static/css/{include}", 'public/css/')
|
||||
if 'js_includes' in config:
|
||||
for include in config['js_includes']:
|
||||
copy_file(f"themes/{config['theme']}/static/js/{include}", 'public/js/')
|
||||
copy_file(f"themes/{config['theme']}/static/js/{include}", 'public/js/')
|
||||
|
||||
# copy css/images from site static folder
|
||||
if 'custom_css' in config:
|
||||
|
|
Loading…
Reference in New Issue