diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/blog-page.html | 7 | ||||
| -rw-r--r-- | templates/blog.html | 3 | ||||
| -rw-r--r-- | templates/taxonomy_list.html | 17 | ||||
| -rw-r--r-- | templates/taxonomy_single.html | 17 |
4 files changed, 42 insertions, 2 deletions
diff --git a/templates/blog-page.html b/templates/blog-page.html index ddf34f0..51f8aba 100644 --- a/templates/blog-page.html +++ b/templates/blog-page.html @@ -5,12 +5,17 @@ {% block content %} <nav class="navbar"> - <a href="/">Home</a> <a href="../">Go Back</a> + <a href="/">Home</a> </nav> <h1 class="title"> {{ page.title }} </h1> <p class="subtitle">{{ page.date | date(format="%-d %b %Y") }}</p> +<p class="subtitle"> + {% for tag in page.taxonomies.tags %} + <a href="/tags/{{ tag | safe}}">#{{ tag }}</a> + {% endfor %} +</p> <hr> {{ page.content | safe }} diff --git a/templates/blog.html b/templates/blog.html index fb7ea21..f8f422f 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -4,11 +4,12 @@ {% block content %} <nav class="navbar"> - <a href="/">Home</a> <!--a href="../">Go Back</a--!> + <a href="/">Home</a> </nav> <h1 class="title"> {{ section.title }} </h1> +Browse by <a href="/tags">tags</a> <ul> {% for page in section.pages %} <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a> ({{ page.date }})</li> diff --git a/templates/taxonomy_list.html b/templates/taxonomy_list.html new file mode 100644 index 0000000..084e3b5 --- /dev/null +++ b/templates/taxonomy_list.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} + +{% block title %}Browse by {{taxonomy.name}}{% endblock title %} + +{% block content %} +<nav class="navbar"> + <a href="/">Home</a> <!--a href="../">Go Back</a--!> +</nav> +<h1 class="title"> + {{ taxonomy.name }} +</h1> +<ul> + {% for term in terms %} + <li><a href="{{ term.permalink | safe }}">#{{ term.name }}</a> </li> + {% endfor %} +</ul> +{% endblock content %} diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html new file mode 100644 index 0000000..9f93975 --- /dev/null +++ b/templates/taxonomy_single.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} + +{% block title %}#{{ term.name }}{% endblock title %} + +{% block content %} +<nav class="navbar"> + <a href="/">Home</a> <!--a href="../">Go Back</a--!> +</nav> +<h1 class="title"> + #{{ term.name }} +</h1> +<ul> + {% for page in term.pages %} + <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a> ({{ page.date }})</li> + {% endfor %} +</ul> +{% endblock content %} |