{% comment %}
  Format a link to a posts-with-tag page from "tag", a _data/tags.yml object, and "tag_separator".
{% endcomment %}

<a href="{{ site.baseurl }}/tag/{{ include.tag.slug }}">{{ include.tag.name }}</a>{% if forloop.last == false %}{{ include.tag_separator }}{% endif %}

{% comment %}
  Format a link to a posts-with-tag page from "tag", a _data/tags.yml object, and "tag_separator".
{% endcomment %}

{% if site.permalink == 'pretty' %}
  {% capture tag_page %}{{ include.tag.slug }}/{% endcapture %}
{% else %}
  {% capture tag_page %}{{ include.tag.slug }}.html{% endcapture %}
{% endif %}

<a href="{{ site.baseurl }}/tag/{{ tag_page }}" title="Posts tagged '{{ include.tag.name }}'">{{ include.tag.name }}</a>{% if forloop.last == false %}{{ include.tag_separator }}{% endif %}

Fix tag links for 'ordinal', 'date', 'none' permalinks
Fix tag links for 'ordinal', 'date', 'none' permalinks
