---
layout: default
---
{% assign rawtags = "" %}
{% for post in site.posts %}
{% assign ttags = post.tags | join:'|' | append:'|' %}
{% assign rawtags = rawtags | append:ttags %}
{% endfor %}
{% assign rawtags = rawtags | split:'|' | sort %}
{% assign site.tags = "" %}
{% for tag in rawtags %}
{% if tag != "" %}
{% if tags == "" %}
{% assign tags = tag | split:'|' %}
{% endif %}
{% unless tags contains tag %}
{% assign tags = tags | join:'|' | append:'|' | append:tag | split:'|' %}
{% endunless %}
{% endif %}
{% endfor %}
{{ page.tag }}
{% comment %} We only want to output Story pages, not any other pages (such as the 404 error page or index page){% endcomment %}
{% assign pages = site.pages %}
{% assign stories = pages | where: "layout", "story"%}
{% assign sorted = stories | sort: "historical-date.year" | reverse %}
{% for story in sorted %}
{% assign is_wip = page.story-status.wip %}
{% if story.historical-date.bce %}
{% if story.tags contains page.tag %}
-
{{story.historical-date.year}}
BCE:
{{ story.title }}
{% if is_wip %} (WIP) {% endif %}
{%endif%}
{% endif %}
{% endfor %}
{% comment %} we sort by year, but don't forget we sorted alll BCE dates... backwards! {% endcomment %}
{% assign sorted_forwards = sorted | reverse %}
{% for story in sorted_forwards %}
{% unless story.historical-date.bce %}
{% if story.tags contains page.tag %}
-
{{story.historical-date.year}}
CE:
{{ story.title }}
{% if is_wip %} (WIP) {% endif %}
{%endif%}
{% endunless %}
{% endfor %}