aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/pelican-css-js/pelican_css_js.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-02-04 21:03:27 -0500
committerJesús <heckyel@hyperbola.info>2020-02-04 21:03:27 -0500
commitedcc28d056fa30681248910a63cf202870d26d1c (patch)
tree25d3f918d129ed66729358b161b202fee01d26d6 /plugins/pelican-css-js/pelican_css_js.py
parent8ce14267858a6ec60cd86d22f086d43067b1fd9c (diff)
downloadlibretube-edcc28d056fa30681248910a63cf202870d26d1c.tar.lz
libretube-edcc28d056fa30681248910a63cf202870d26d1c.tar.xz
libretube-edcc28d056fa30681248910a63cf202870d26d1c.zip
pep8
Diffstat (limited to 'plugins/pelican-css-js/pelican_css_js.py')
-rw-r--r--plugins/pelican-css-js/pelican_css_js.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/pelican-css-js/pelican_css_js.py b/plugins/pelican-css-js/pelican_css_js.py
index d3c5420..9cab8a6 100644
--- a/plugins/pelican-css-js/pelican_css_js.py
+++ b/plugins/pelican-css-js/pelican_css_js.py
@@ -10,6 +10,7 @@ import shutil
from pelican import signals
+
def copy_resources(src, dest, file_list):
"""
Copy files from content folder to output folder
@@ -33,6 +34,7 @@ def copy_resources(src, dest, file_list):
file_src = os.path.join(src, file_)
shutil.copy2(file_src, dest)
+
def add_files(gen, metadata):
"""
The registered handler for the dynamic resources plugin. It will
@@ -59,6 +61,7 @@ def add_files(gen, metadata):
htmls.append(html)
metadata[key] = htmls
+
def move_resources(gen):
"""
Move files from js/css folders to output folder