Skip to content

Commit 4f0e18d

Browse files
committed
Version 2.0.2
1 parent 2f5017f commit 4f0e18d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Install the package from source with pip:
5050
```bash
5151
cd mkdocs-encryptcontent-plugin/
5252
python3 setup.py sdist bdist_wheel
53-
pip3 install dist/mkdocs_encryptcontent_plugin-2.0.1-py3-none-any.whl
53+
pip3 install dist/mkdocs_encryptcontent_plugin-2.0.2-py3-none-any.whl
5454
```
5555

5656
Enable the plugin in your `mkdocs.yml`:

encryptcontent/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def on_page_content(self, html, page, config, **kwargs):
276276
# Set attribute on page to identify encrypted page on template rendering
277277
setattr(page, 'encrypted', True)
278278
# Create relative path in case of subdir in site_url
279-
base_path = page.abs_url.replace(page.url,'')
279+
base_path = page.abs_url.replace(page.url,'') if page.abs_url is not None else '/'
280280
# Set password attributes on page for other mkdocs events
281281
setattr(page, 'password', str(self.config['password']))
282282
# Keep encrypted html as temporary variable on page cause we need clear html for search plugin

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def read(fname):
1111

1212
setup(
1313
name='mkdocs-encryptcontent-plugin',
14-
version='2.0.1',
14+
version='2.0.2',
1515
author='CoinK0in',
1616
author_email='[email protected]',
1717
description='A MkDocs plugin that encrypt/decrypt markdown content with AES',

0 commit comments

Comments
 (0)