set up series

main
Brian Hicks 2020-12-03 21:07:46 -06:00
parent 58a8c4c009
commit dba55296a0
3 changed files with 35 additions and 0 deletions

View File

@ -17,5 +17,8 @@ build_search_index = false
generate_feed = true
feed_filename = "index.xml"
[[taxonomies]]
name = "series"
[extra]
# Put all your custom variables here

View File

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block title %}Series{% endblock %}
{% block content %}
<h1>Series</h1>
{% for term in terms %}
<article>
<h2><a href="{{term.permalink}}">{{ term.name }}</a></h2>
<ul>
{% for page in term.pages %}
<ul><a href="{{page.permalink | safe }}">{{ page.title }}</a>{% if page.date %}, <em>{{ page.date | date(format="%B %-d, %Y") }}</em>{% endif %}</ul>
{% endfor %}
</ul>
</article>
{% endfor %}
{% endblock %}

View File

@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block title %}{{ term.name }}{% endblock %}
{% block content %}
<h1>{{ term.name }}</h1>
{% for page in term.pages %}
<article>
<a href="{{page.permalink | safe }}">{{ page.title }}</a>{% if page.date %}, <em>{{ page.date | date(format="%B %-d, %Y") }}</em>{% endif %}
</article>
{% endfor %}
{% endblock %}