Skip to content
Snippets Groups Projects
Verified Commit 597dd6e0 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

Add rel="tag" for tags

This should improve SEO and simply allow people who use some fancy 
scripts or accessbility features to find tags of an article
parent 47baf70d
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ layout: default
<div class="post-meta">
<time datetime="{{ page.date | date: "%Y-%m-%d %H:%M" }}" class="post-meta__date date">{{ page.date | date: "%-d %b %Y" }}</time>
{% if page.tags.size > 0 %}
&#8226; <span class="post-meta__tags">on {% for tag in page.tags %}<a href="{{ site.baseurl }}/tags/#{{ tag }}">{{ tag }}</a> {% endfor %}</span>
&#8226; <span class="post-meta__tags">on {% for tag in page.tags %}<a href="{{ site.baseurl }}/tags/#{{ tag }}" rel="tag">{{ tag }}</a> {% endfor %}</span>
{% endif %}
</div>
<h1 class="post-title">{{ page.title }}</h1>
......
......@@ -2,9 +2,9 @@
layout: default
---
<h2>Tags:</h2>
<div class="tags">
{% for tagitem in site.tags %}
<a href="#{{ tagitem[0] }}">{{ tagitem[0] }}</a>
<div class="tags">
{% for tagitem in site.tags %}
<a href="#{{ tagitem[0] }}" rel="tag">{{ tagitem[0] }}</a>
{% endfor %}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment