diff --git a/archivebox/core/views.py b/archivebox/core/views.py index 3f3fec12..24035628 100644 --- a/archivebox/core/views.py +++ b/archivebox/core/views.py @@ -23,6 +23,7 @@ from ..config import ( PUBLIC_SNAPSHOTS, PUBLIC_ADD_VIEW, VERSION, + COMMIT_HASH, FOOTER_INFO, SNAPSHOTS_PER_PAGE, ) @@ -217,6 +218,7 @@ class PublicIndexView(ListView): return { **super().get_context_data(**kwargs), 'VERSION': VERSION, + 'COMMIT_HASH': COMMIT_HASH, 'FOOTER_INFO': FOOTER_INFO, } diff --git a/archivebox/templates/core/base.html b/archivebox/templates/core/base.html index d2268fd0..bca3a11c 100644 --- a/archivebox/templates/core/base.html +++ b/archivebox/templates/core/base.html @@ -38,8 +38,11 @@
- Archive created using ArchiveBox version - v{{VERSION}}. + Archive created using ArchiveBox + v{{VERSION}} + {% if COMMIT_HASH %} + ({{COMMIT_HASH|truncatechars:9}}) + {% endif %}.

{{FOOTER_INFO}}