Skip to content

Commit

Permalink
set up series
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Dec 4, 2020
1 parent 58a8c4c commit dba5529
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config.toml
Expand Up @@ -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
18 changes: 18 additions & 0 deletions templates/series/list.html
@@ -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 %}

14 changes: 14 additions & 0 deletions templates/series/single.html
@@ -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 %}


0 comments on commit dba5529

Please sign in to comment.