diff --git a/archivebox/core/views.py b/archivebox/core/views.py index a81d98f3..d0fac41c 100644 --- a/archivebox/core/views.py +++ b/archivebox/core/views.py @@ -112,6 +112,11 @@ class PublicArchiveView(ListView): snapshot.icons = snapshot_icons(snapshot) return qs + def get_context_data(self,**kwargs): + context = super(PublicArchiveView,self).get_context_data(**kwargs) + context['num_links'] = self.get_queryset().count() + return context + def get(self, *args, **kwargs): if PUBLIC_INDEX or self.request.user.is_authenticated: response = super().get(*args, **kwargs)