From db26ab9aa90982e5d8d5dbfdcf634c538b51466e Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 30 Oct 2017 02:49:44 -0500 Subject: [PATCH] add basic html and fancy link index options --- archive.py | 1 - config.py | 2 +- templates/link_index.html | 296 +++++--------------------------- templates/link_index_fancy.html | 268 +++++++++++++++++++++++++++++ 4 files changed, 314 insertions(+), 253 deletions(-) create mode 100644 templates/link_index_fancy.html diff --git a/archive.py b/archive.py index 19a787b3..2a3faf54 100755 --- a/archive.py +++ b/archive.py @@ -106,5 +106,4 @@ if __name__ == '__main__': # make sure folder structure is sane cleanup_archive(ARCHIVE_FOLDER, links) - raise SystemExit(0) update_archive(export_path, links, resume=resume_from, append=True) diff --git a/config.py b/config.py index bdd07c0b..ab94faca 100644 --- a/config.py +++ b/config.py @@ -28,7 +28,7 @@ CHROME_BINARY = os.getenv('CHROME_BINARY', 'chromium-browser' WGET_BINARY = os.getenv('WGET_BINARY', 'wget' ) WGET_USER_AGENT = os.getenv('WGET_USER_AGENT', None) TIMEOUT = int(os.getenv('TIMEOUT', '60')) -LINK_INDEX_TEMPLATE = os.getenv('LINK_INDEX_TEMPLATE', 'templates/link_index.html') +LINK_INDEX_TEMPLATE = os.getenv('LINK_INDEX_TEMPLATE', 'templates/link_index_fancy.html') INDEX_TEMPLATE = os.getenv('INDEX_TEMPLATE', 'templates/index.html') INDEX_ROW_TEMPLATE = os.getenv('INDEX_ROW_TEMPLATE', 'templates/index_row.html') diff --git a/templates/link_index.html b/templates/link_index.html index a4eb35df..b6b7c1ad 100644 --- a/templates/link_index.html +++ b/templates/link_index.html @@ -2,264 +2,58 @@ $title - - - - +
-

- - [-] - - - Archive Icon - - $title
+

+ $title
- $base_url + $base_url

-