diff --git a/src/sigal/gallery.py b/src/sigal/gallery.py index f9eefa0..58f927b 100644 --- a/src/sigal/gallery.py +++ b/src/sigal/gallery.py @@ -891,6 +891,7 @@ class Gallery: if self.settings["write_html"]: album_writer = AlbumPageWriter(self.settings, index_title=self.title) + album_writer.copy_theme_files() album_list_writer = AlbumListPageWriter( self.settings, index_title=self.title ) diff --git a/src/sigal/writer.py b/src/sigal/writer.py index 4a8dd9d..6831d58 100644 --- a/src/sigal/writer.py +++ b/src/sigal/writer.py @@ -95,8 +95,12 @@ class AbstractWriter: ) sys.exit(1) - # Copy the theme files in the output dir self.theme_path = os.path.join(self.output_dir, "static") + + def copy_theme_files(self): + """Copy the theme files to the destination""" + self.logger.info("Copying the theme files to the output dir") + if os.path.isdir(self.theme_path): shutil.rmtree(self.theme_path)