Skip to content

Commit

Permalink
Respect USE_FILENAME_AS_TITLE in galleries with metadata.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 8, 2018
1 parent d84e236 commit 76b1da3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nikola/plugins/task/galleries.py
Expand Up @@ -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']))
Expand Down

0 comments on commit 76b1da3

Please sign in to comment.