diff --git a/archivebox/index.py b/archivebox/index.py index 1aa661e9..4e9882f3 100644 --- a/archivebox/index.py +++ b/archivebox/index.py @@ -175,17 +175,8 @@ def write_html_link_index(out_dir, link): with open(path, 'w', encoding='utf-8') as f: f.write(Template(link_html).substitute({ - **link, + **derived_link_info(link), **link['latest'], - 'title': link['title'] or link['url'], - 'type': link['type'] or 'website', - 'tags': link['tags'] or 'untagged', - 'bookmarked': datetime.fromtimestamp(float(link['timestamp'])).strftime('%Y-%m-%d %H:%M'), - 'updated': datetime.fromtimestamp(float(link['updated'])).strftime('%Y-%m-%d %H:%M'), - 'bookmarked_ts': link['timestamp'], - 'updated_ts': link['updated'], - 'archive_org': link['latest'].get('archive_org') or 'https://web.archive.org/save/{}'.format(link['url']), - 'wget': link['latest'].get('wget') or wget_output_path(link), })) chmod_file(path) diff --git a/archivebox/templates/index_row.html b/archivebox/templates/index_row.html index 0d2ac490..a5a5e674 100644 --- a/archivebox/templates/index_row.html +++ b/archivebox/templates/index_row.html @@ -8,9 +8,9 @@ $title $tags - 🖼 - 📜 - 📄 + 🖼 + 📜 + 📄 🏛 $url diff --git a/archivebox/templates/link_index.html b/archivebox/templates/link_index.html index d1bbccd5..e5f04ef5 100644 --- a/archivebox/templates/link_index.html +++ b/archivebox/templates/link_index.html @@ -2,7 +2,6 @@ $title -
@@ -19,9 +18,9 @@ Type: $type

Bookmarked:
- $bookmarked
+ $bookmarked
Archived:
- $updated
+ $updated_date

diff --git a/archivebox/templates/link_index_fancy.html b/archivebox/templates/link_index_fancy.html index 9ebc3e28..305260e1 100644 --- a/archivebox/templates/link_index_fancy.html +++ b/archivebox/templates/link_index_fancy.html @@ -172,9 +172,9 @@