diff --git a/sigal/gallery.py b/sigal/gallery.py index 9a6064e..f44cb1a 100644 --- a/sigal/gallery.py +++ b/sigal/gallery.py @@ -102,7 +102,7 @@ class Media(UnicodeMixin): orig_path = join(s['destination'], self.path, s['orig_dir']) check_or_create_dir(orig_path) big_path = join(orig_path, self.src_filename) - if not os.path.isfile(big_path): + if not isfile(big_path): copy(self.src_path, big_path, symlink=s['orig_link']) return url_from_path(join(s['orig_dir'], self.src_filename)) @@ -111,7 +111,7 @@ class Media(UnicodeMixin): def thumbnail(self): """Path to the thumbnail image (relative to the album directory).""" - if not os.path.isfile(self.thumb_path): + if not isfile(self.thumb_path): # if thumbnail is missing (if settings['make_thumbs'] is False) if self.type == 'image': generator = image.generate_thumbnail diff --git a/sigal/templates/sigal.conf.py b/sigal/templates/sigal.conf.py index 30b4fb4..1093642 100644 --- a/sigal/templates/sigal.conf.py +++ b/sigal/templates/sigal.conf.py @@ -187,7 +187,7 @@ ignore_files = [] # 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' -# zip_skip_if_exists = false # Skip archive generation if archive is already present. Warning: new photos in an album won't be added to archive +# zip_skip_if_exists = False # Skip archive generation if archive is already present. Warning: new photos in an album won't be added to archive # Specify a different locale. If set to '', the default locale is used. # locale = ''