Skip to content

Commit 6cbbaa8

Browse files
authored
Use only the first output path we get (#129)
Some plugins like the i18n subsites plugin change the settings or the output path to generate different pages for different languages. We only use the first output path and reuse the images for all languages.
1 parent 29dd302 commit 6cbbaa8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pelican/plugins/photos/photos.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1708,7 +1708,8 @@ def initialized(pelican: Pelican): # noqa: PLR0915
17081708
global pelican_settings
17091709
pelican_settings = pelican.settings
17101710
global pelican_output_path
1711-
pelican_output_path = pelican.output_path
1711+
if pelican_output_path is None:
1712+
pelican_output_path = pelican.output_path
17121713
global g_profiles
17131714
g_profiles = {}
17141715
default_profile = Profile(

0 commit comments

Comments
 (0)