diff --git a/pelican/themes/notmyidea/templates/authors.html b/pelican/themes/notmyidea/templates/authors.html
index b145902e..f6429e8a 100644
--- a/pelican/themes/notmyidea/templates/authors.html
+++ b/pelican/themes/notmyidea/templates/authors.html
@@ -6,9 +6,11 @@
Authors on {{ SITENAME }}
+
{%- for author, articles in authors|sort %}
- {{ author }} ({{ articles|count }})
{% endfor %}
+
{% endblock %}
diff --git a/pelican/themes/notmyidea/templates/index.html b/pelican/themes/notmyidea/templates/index.html
index 2d45bb2a..c8982476 100644
--- a/pelican/themes/notmyidea/templates/index.html
+++ b/pelican/themes/notmyidea/templates/index.html
@@ -42,12 +42,15 @@
{% endif %}
{% if loop.last %}
-
- {% if loop.last and (articles_page.has_previous()
- or not articles_page.has_previous() and loop.length > 1) %}
+ {% if loop.length > 1 %}
+
+ {% endif %}
+ {% if articles_page.has_previous() or loop.length > 1 %}
{% include 'pagination.html' %}
{% endif %}
-
+ {% if loop.length > 1 %}
+
+ {% endif %}
{% endif %}
{% endfor %}
{% else %}
diff --git a/pelican/themes/notmyidea/templates/taglist.html b/pelican/themes/notmyidea/templates/taglist.html
index c792fd7d..b8f4ba95 100644
--- a/pelican/themes/notmyidea/templates/taglist.html
+++ b/pelican/themes/notmyidea/templates/taglist.html
@@ -1,2 +1,2 @@
-{% if article.tags %}
tags: {% for tag in article.tags %}{{ tag }}{% endfor %}
{% endif %}
+{% if article.tags %}tags: {% for tag in article.tags %}{{ tag }} {% endfor %}
{% endif %}
{% if PDF_PROCESSOR %}get the pdf
{% endif %}
diff --git a/pelican/themes/notmyidea/templates/tags.html b/pelican/themes/notmyidea/templates/tags.html
index 76955f27..5fae82ff 100644
--- a/pelican/themes/notmyidea/templates/tags.html
+++ b/pelican/themes/notmyidea/templates/tags.html
@@ -6,10 +6,11 @@
Tags for {{ SITENAME }}
-
+
{%- for tag, articles in tags|sort %}
- {{ tag }} ({{ articles|count }})
{% endfor %}
+
{% endblock %}