-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added settings to give a different output filename than index.html #115
Conversation
Hi @j0nes2k ,
or maybe a list of tuples
What do you think ? |
I agree that this approach would solve the basic problem for me, too. |
Hmm, looping on the list of (template, output_file) can be easily done in the write method, but the tricky point is how to handle the urls. |
self.path = path | ||
self.name = path.split(os.path.sep)[-1] | ||
self.gallery = gallery | ||
self.settings = settings | ||
self.output_file = output_file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be directly settings['output_filename']
(instead of adding an extra parameter).
I also think that support for multiple output files is generally a good idea and can be used for a lot of other advanced features (like tag pages, recent changes etc). I would suggest to have a look at this problem again when developing features that require these changes. |
Added settings to give a different output filename than index.html
Ok, let's start with this. Thanks for the contribution :) |
With this option it is possible to specify another output filename for the generated gallery files than the default index.html. This is useful if the directory index is already used otherwise.