Skip to content
Permalink
Browse files

Respect USE_FILENAME_AS_TITLE in galleries with metadata.yml

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 8, 2018
1 parent d84e236 commit 76b1da3362286bea93a621226a85560ca212c9dc
Showing with 4 additions and 1 deletion.
  1. +4 −1 nikola/plugins/task/galleries.py
@@ -247,7 +247,10 @@ def gen_tasks(self):
if fn in captions:
img_titles.append(captions[fn])
else:
img_titles.append(fn)
if self.kw['use_filename_as_title']:
img_titles.append(fn)
else:
img_titles.append('')
self.logger.debug(
"Image {0} found in gallery but not listed in {1}".
format(fn, context['meta_path']))

0 comments on commit 76b1da3

Please sign in to comment.