From ac4f060151704f2d81951e6862e85b7c2a9f6a78 Mon Sep 17 00:00:00 2001 From: David Todd Date: Mon, 27 May 2019 14:19:27 -0500 Subject: [PATCH] add deadlink config and fix plugin path --- pelican/pelicanconf.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/pelican/pelicanconf.py b/pelican/pelicanconf.py index d99e364..1e5115e 100644 --- a/pelican/pelicanconf.py +++ b/pelican/pelicanconf.py @@ -35,11 +35,26 @@ DEFAULT_PAGINATION = 20 USE_FOLDER_AS_CATEGORY = True # Use directories in content to specify the category DEFAULT_CATEGORY = 'none' -PLUGINS_PATH = ['plugins/'] +PLUGIN_PATHS = ['plugins/encrypt-content', + 'plugins'] PLUGINS = ['encrypt_content', 'deadlinks'] +# Plugin specific settings below + +# Encrypt-Content Settings ENCRYPT_CONTENT = { 'title_prefix': '[Encrypted]', 'summary': 'This content is encrypted and requires a password to unlock' } + +# Deadlink Settings +DEADLINK_VALIDATION = True + +DEADLINK_OPTS = { + 'archive': True, + 'classes': ['disabled'], + 'labels': True, + 'timeout_duration_ms': 3000, + 'timeout_is_error': False +}