Skip to content

Commit c221a9c

Browse files
committed
this was already assigned in on_config
1 parent cfbbc4c commit c221a9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

encryptcontent/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,15 @@ def on_page_markdown(self, markdown, page, config, **kwargs):
281281
The page_markdown event is called after the page's markdown is loaded from file and
282282
can be used to alter the Markdown source text. The meta- data has been stripped off
283283
and is available as page.meta at this point.
284-
Load password from meta header *.md pages and override global_password if define.
284+
Load password from meta header *.md pages and override global_password if defined.
285285
286286
:param markdown: Markdown source text of page as string
287287
:param page: mkdocs.nav.Page instance
288288
:param config: global configuration object
289289
:param site_navigation: global navigation object
290290
:return: Markdown source text of page as string
291291
"""
292-
self.config['password'] = self.config['global_password']
292+
293293
if 'password' in page.meta.keys():
294294
# If global_password is set, but you don't want to encrypt content
295295
page_password = str(page.meta.get('password'))

0 commit comments

Comments
 (0)