Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sigal/gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Copyright (c) 2009-2014 - Simon Conseil
# Copyright (c) 2013 - Christophe-Marie Duquesne
# Copyright (c) 2014 - Jonas Kaufmann

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
Expand Down Expand Up @@ -223,13 +224,13 @@ class Album(UnicodeMixin):
"""

description_file = "index.md"
output_file = 'index.html'

def __init__(self, path, settings, dirnames, filenames, gallery):
self.path = path
self.name = path.split(os.path.sep)[-1]
self.gallery = gallery
self.settings = settings
self.output_file = settings['output_filename']
self._thumbnail = None

if path == '.':
Expand Down
1 change: 1 addition & 0 deletions sigal/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
'medias_sort_attr': 'filename',
'medias_sort_reverse': False,
'make_thumbs': True,
'output_filename': 'index.html',
'orig_dir': 'original',
'orig_link': False,
'plugins': [],
Expand Down
5 changes: 4 additions & 1 deletion sigal/templates/sigal.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@
# Write HTML files. If False, sigal will only process the images.
# write_html = True

# Add index.html to the URLs
# Name of the generated HTML files
# output_filename = 'index.html'

# Add output filename (see above) to the URLs
# index_in_url = False

# A list of links (tuples (title, URL))
Expand Down