---
layout: page
title: Dungeons & Dragons
description: "All things Dungeon & Dragons."
image:
  feature: deneki.jpg
comments: false
permalink: /dnd/
---

These are all posts about Dungeons & Dragons. Including posts for my group

{% for post in site.categories.dungeons-and-dragons %}
    {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
    {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}

    {% if forloop.first %}
    <article>
      <h2 id="{{ this_year }}-ref">{{ this_year }}</h2>
      <ul>
    {% endif %}

        <li class="entry-title"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>

    {% if forloop.last %}
      </ul>
    </article>
    {% else %}
        {% if this_year != next_year %}
          </ul>
        </article>
        <article>
          <h2 id="{{ next_year }}-ref" class="year-heading">{{next_year}}</h2>
          <ul>
        {% endif %}
    {% endif %}
{% endfor %}


---
layout: page
title: Dungeons & Dragons
description: "All things Dungeon & Dragons."
image:
  feature: deneki.jpg
comments: false
permalink: /dnd/
---

These are all posts about Dungeons & Dragons. Including posts for my group

{% for post in site.categories.dungeons-and-dragons %}
  {% assign currentdate = post.date | date: "%Y" %}

  {% if forloop.first %}
    {% assign date = currentdate %}
    <article>
        <h2 id="{{ currentdate }}-ref">{{ currentdate }}</h2>
        <ul>
  {% endif %}

  {% if currentdate != date %}
      </ul>
    </article>
    <article>
        <h2 id="{{ currentdate }}-ref">{{ currentdate }}</h2>
        <ul>
    {% assign date = currentdate %}
  {% endif %}
    <li><a href="{{ post.url }}">{{ post.title }}</a></li>


{% endfor %}
      </ul>
    </article>
Fix year is D&D page
Fix year is D&D page
