diff --git a/archivebox/config.py b/archivebox/config.py index 6db7b3d7..6d2c0222 100644 --- a/archivebox/config.py +++ b/archivebox/config.py @@ -106,6 +106,7 @@ CONFIG_SCHEMA: Dict[str, ConfigDefaultDict] = { 'LOGOUT_REDIRECT_URL': {'type': str, 'default': '/'}, 'PREVIEW_ORIGINALS': {'type': bool, 'default': True}, 'LOGOUT_REDIRECT_URL': {'type': str, 'default': '/'}, + 'RENDER_PREVIEW': {'type': bool, 'default': True}, }, 'ARCHIVE_METHOD_TOGGLES': { diff --git a/archivebox/index/html.py b/archivebox/index/html.py index 66e26fab..fd649f0f 100644 --- a/archivebox/index/html.py +++ b/archivebox/index/html.py @@ -25,6 +25,7 @@ from ..config import ( HTML_INDEX_FILENAME, SAVE_ARCHIVE_DOT_ORG, PREVIEW_ORIGINALS, + RENDER_PREVIEW, ) MAIN_INDEX_TEMPLATE = 'static_index.html' @@ -107,6 +108,7 @@ def link_details_template(link: Link) -> str: 'oldest_archive_date': ts_to_date_str(link.oldest_archive_date), 'SAVE_ARCHIVE_DOT_ORG': SAVE_ARCHIVE_DOT_ORG, 'PREVIEW_ORIGINALS': PREVIEW_ORIGINALS, + 'RENDER_PREVIEW': RENDER_PREVIEW, }) @enforce_types diff --git a/archivebox/templates/core/snapshot.html b/archivebox/templates/core/snapshot.html index 79745001..3e86f8f6 100644 --- a/archivebox/templates/core/snapshot.html +++ b/archivebox/templates/core/snapshot.html @@ -84,7 +84,9 @@
+ {% if RENDER_PREVIEW %} + {% endif %}
+ {% if RENDER_PREVIEW %} + {% endif %}
+ {% if RENDER_PREVIEW %} + {% endif %}
+ {% if RENDER_PREVIEW %} + {% endif %}

./{{domain}}

@@ -129,7 +137,9 @@ {% if SAVE_ARCHIVE_DOT_ORG %}