Skip to content

Commit 0a6ab76

Browse files
committed
Rename option
1 parent b9296ca commit 0a6ab76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mkdocs_glightbox/plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class LightboxPlugin(BasePlugin):
2525
("draggable", config_options.Type(bool, default=True)),
2626
("skip_classes", config_options.Type(list, default=[])),
2727
("auto_caption", config_options.Type(bool, default=False)),
28-
("desc_position",
28+
("caption_position",
2929
config_options.Choice(("bottom", "top", "left", "right"),
3030
default="bottom")),
3131
)
@@ -110,8 +110,8 @@ def on_page_content(self, html, page, config, **kwargs):
110110
else:
111111
a['data-title'] = img.get("data-title", "")
112112
a['data-description'] = img.get("data-description", "")
113-
a['data-desc-position'] = img.get("data-desc-position",
114-
self.config['desc_position'])
113+
a['data-desc-position'] = img.get("data-caption-position",
114+
self.config['caption_position'])
115115
img.wrap(a)
116116
return str(soup)
117117

0 commit comments

Comments
 (0)