diff --git a/sigal/gallery.py b/sigal/gallery.py index 261531e..7ad5143 100644 --- a/sigal/gallery.py +++ b/sigal/gallery.py @@ -479,6 +479,7 @@ class Album(UnicodeMixin): zip_gallery = self.settings['zip_gallery'] if zip_gallery and len(self) > 0: + zip_gallery = zip_gallery.format(album=self) archive_path = join(self.dst_path, zip_gallery) archive = zipfile.ZipFile(archive_path, 'w', allowZip64=True) attr = ('src_path' if self.settings['zip_media_format'] == 'orig' diff --git a/sigal/templates/sigal.conf.py b/sigal/templates/sigal.conf.py index 1ec4abb..5b52a12 100644 --- a/sigal/templates/sigal.conf.py +++ b/sigal/templates/sigal.conf.py @@ -183,7 +183,8 @@ ignore_files = [] # Example : {'tracker_url': 'http://stats.domain.com', 'site_id' : 2} # piwik = {'tracker_url': '', 'site_id' : 0} -# Set zip_gallery to either False or a file name. The final archive will +# Set zip_gallery to either False or a file name. The file name can be formated +# python style with an 'album' variable, for example '{album.name}.zip'. The final archive will # contain all resized or original files (depending on `zip_media_format`). # zip_gallery = False # False or 'archive.zip' # zip_media_format = 'resized' # 'resized' or 'orig'