First pass on a sub-header functionality
diff --git a/static/css/style.less b/static/css/style.less
index 6b2a52b..14763db 100644
--- a/static/css/style.less
+++ b/static/css/style.less
@@ -91,7 +91,7 @@
margin: auto;
header {
- padding: 20px 20px 20px 40px;
+ padding: 20px 40px 20px 40px;
border-top: @light-grey 1px solid;
border-bottom: @light-grey 1px solid;
text-align: center;
@@ -101,6 +101,19 @@
font-size: 15px;
text-transform: uppercase;
}
+
+ p#header {
+ color: @black;
+ }
+
+ p:not(#header){
+ a {
+ color: @dark-grey;
+ &:hover{
+ color: @accent;
+ }
+ }
+ }
}
article {
diff --git a/templates/archives.html b/templates/archives.html
index 38ac8a8..ee2fff8 100644
--- a/templates/archives.html
+++ b/templates/archives.html
@@ -1,6 +1,10 @@
{% extends "base.html" %}
{% block title %}Archives{% endblock %}
+{% block subheader %}
+{% include "modules/blogsubheader.html" %}
+{% endblock subheader %}
+
{% block content %}
<article>
<div class="article_text">
diff --git a/templates/article.html b/templates/article.html
index 48f4d4e..b397795 100644
--- a/templates/article.html
+++ b/templates/article.html
@@ -5,7 +5,7 @@
{% block title %}{{ article.title }}{% endblock %}
-{% block header %}
+{% block subheader %}
<p>Posted on {{ article.locale_date }}</p>
{% endblock %}
diff --git a/templates/author.html b/templates/author.html
index e9c3c81..855af33 100644
--- a/templates/author.html
+++ b/templates/author.html
@@ -1,6 +1,6 @@
{% extends "index.html" %}
{% block title %}Author: {{ author }}{% endblock %}
-{% block header %}
+{% block subheader %}
<p>Author: {{ author }}</p>
{% endblock %}
diff --git a/templates/base.html b/templates/base.html
index febd541..151b2ab 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -61,7 +61,7 @@
<main>
<header>
{% block header %}
- <p>
+ <p id="header">
<a href="{{ SITEURL }}">Home</a>
{% for p in pages|sort %}
@@ -72,7 +72,6 @@
{% if INDEX_SAVE_AS and INDEX_SAVE_AS != "index.html" %}
| <a href="{{ SITEURL }}/{{ INDEX_SAVE_AS }}">Blog</a>
{% endif %}
- | <a href="{{ SITEURL }}/{{ ARCHIVES_URL }}">Post List</a>
{% if FEED_ALL_ATOM %}
| <a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}">Atom Feed</a>
{% endif %}
@@ -81,6 +80,8 @@
{% endif %}
</p>
{% endblock header %}
+ {% block subheader %}
+ {% endblock subheader %}
</header>
{% block content %}
diff --git a/templates/categories.html b/templates/categories.html
index 3f298a4..7c6be9f 100644
--- a/templates/categories.html
+++ b/templates/categories.html
@@ -1,6 +1,10 @@
{% extends "base.html" %}
{% block title %}Categories{% endblock %}
+{% block subheader %}
+{% include "modules/blogsubheader.html" %}
+{% endblock subheader %}
+
{% block content %}
<article>
<div class="article_text">
diff --git a/templates/category.html b/templates/category.html
index 0e7711c..ffb949d 100644
--- a/templates/category.html
+++ b/templates/category.html
@@ -10,7 +10,7 @@
{% endif %}
{% endblock %}
-{% block header %}
+{% block subheader %}
<p>Category: {{ category }}
{% if CATEGORY_FEED_ATOM %}
| <a href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category) }}">Atom Feed</a>
diff --git a/templates/index.html b/templates/index.html
index e2e2be8..bf0e5d3 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,4 +1,9 @@
{% extends "base.html" %}
+
+{% block subheader %}
+{% include "modules/blogsubheader.html" %}
+{% endblock subheader %}
+
{% block content %}
{% for article in articles_page.object_list %}
<article>
diff --git a/templates/modules/blogsubheader.html b/templates/modules/blogsubheader.html
new file mode 100644
index 0000000..2c4b18e
--- /dev/null
+++ b/templates/modules/blogsubheader.html
@@ -0,0 +1,10 @@
+<p>
+{% if INDEX_SAVE_AS %}
+<a href="{{ SITEURL }}/{{ INDEX_SAVE_AS }}">Posts</a> |
+{% else %}
+<a href="{{ SITEURL }}">Posts</a> |
+{% endif %}
+<a href="{{ SITEURL }}/{{ TAGS_URL }}">Tags</a> |
+<a href="{{ SITEURL }}/{{ CATEGORIES_URL }}">Categories</a> |
+<a href="{{ SITEURL }}/{{ ARCHIVES_URL }}">Archive</a>
+</p>
diff --git a/templates/tag.html b/templates/tag.html
index 00cca39..624284b 100644
--- a/templates/tag.html
+++ b/templates/tag.html
@@ -10,7 +10,7 @@
{% endif %}
{% endblock %}
-{% block header %}
+{% block subheader %}
<p>Tag: {{ tag }}
{% if TAG_FEED_ATOM %}
| <a href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(tag) }}">Atom Feed</a>
diff --git a/templates/tags.html b/templates/tags.html
index a93c89a..b83fac2 100644
--- a/templates/tags.html
+++ b/templates/tags.html
@@ -1,6 +1,10 @@
{% extends "base.html" %}
{% block title %}Tags{% endblock %}
+{% block subheader %}
+{% include "modules/blogsubheader.html" %}
+{% endblock subheader %}
+
{% block content %}
<article>
<div class="article_text">