Update views.py

Adding links to the index just when the sitemap has items.