Added authors page, allows for disabling of authors, categories, and tags
diff --git a/templates/article.html b/templates/article.html
index b397795..fd662db 100644
--- a/templates/article.html
+++ b/templates/article.html
@@ -6,7 +6,15 @@
{% block title %}{{ article.title }}{% endblock %}
{% block subheader %}
-<p>Posted on {{ article.locale_date }}</p>
+<p>Posted
+{% if article.author %}
+ by{% if AUTHORS_URL %}
+ <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
+{% else %}
+ {{ article.author}}
+{% endif %}
+{% endif %}
+on {{ article.locale_date }}</p>
{% endblock %}
{% block content %}
@@ -18,8 +26,10 @@
{{ article.content }}
</div>
<div class="article_meta">
+ {% if CATEGORY_URL %}
<p>Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p>
- {% if article.tags %}
+ {% endif %}
+ {% if TAG_URL and article.tags %}
<p>Tags:
{% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
diff --git a/templates/authors.html b/templates/authors.html
new file mode 100644
index 0000000..75192e2
--- /dev/null
+++ b/templates/authors.html
@@ -0,0 +1,19 @@
+{% extends "base.html" %}
+{% block title %}{{ SITENAME }} - Authors{% endblock %}
+
+{% block subheader %}
+{% include "modules/blogsubheader.html" %}
+{% endblock subheader %}
+
+{% block content %}
+<article>
+ <div class="article_text">
+ <ul>
+ {% for author, articles in authors %}
+ <li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li>
+ {% endfor %}
+ </ul>
+ </div>
+</article>
+{% endblock %}
+
diff --git a/templates/modules/blogsubheader.html b/templates/modules/blogsubheader.html
index 2c4b18e..48f6241 100644
--- a/templates/modules/blogsubheader.html
+++ b/templates/modules/blogsubheader.html
@@ -4,7 +4,16 @@
{% else %}
<a href="{{ SITEURL }}">Posts</a> |
{% endif %}
+{% if TAGS_URL %}
<a href="{{ SITEURL }}/{{ TAGS_URL }}">Tags</a> |
+{% endif %}
+{% if CATEGORIES_URL %}
<a href="{{ SITEURL }}/{{ CATEGORIES_URL }}">Categories</a> |
+{% endif %}
+{% if AUTHORS_URL %}
+<a href="{{ SITEURL }}/{{ AUTHORS_URL }}">Authors</a> |
+{% endif %}
+{% if ARCHIVES_URL %}
<a href="{{ SITEURL }}/{{ ARCHIVES_URL }}">Archive</a>
+{% endif %}
</p>
diff --git a/templates/tags.html b/templates/tags.html
index b83fac2..fc814b8 100644
--- a/templates/tags.html
+++ b/templates/tags.html
@@ -9,7 +9,7 @@
<article>
<div class="article_text">
<ul>
- {%- for tag, articles in tags|sort %}
+ {% for tag, articles in tags|sort %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
{% endfor %}
</ul>