This commit is contained in:
Jesús
2020-02-04 21:03:27 -05:00
parent 8ce1426785
commit edcc28d056
8 changed files with 68 additions and 50 deletions

View File

@@ -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