I've got this YAML front matter on each post:
---
title: Title
subtitle: Description
date: 2017-09-26 13:15:18 +0200
post-type: front-end
tages:
- HTML
- CSS
- jQuery
---
And I've got this code to show each tag in a list.
{% for tag in page.tags %}
<a class="btn btn-primary" role="button" href="/tags#{{ tag | slugify }}" rel="tag">{{ tag }}</a>
{% endfor %}
Now I want to add a font-awesome icon inside each tag by adding:
<span class="badge badge-light"><i class="fab fa-..."></i>
Like so:
{% for tag in page.tags %}
<a class="btn btn-primary mr-1 mb-2" role="button" href="/tags#{{ tag | slugify }}" rel="tag">{{ tag }} <span class="badge badge-light"><i class="fab fa-github"></i></span></a>
{% endfor %}
Now here's my problem. What I want to accomplish is to manually assign a font awesome icon link to a tag. And when fill in one or more tags in the YAML front matter I want said font awesome link to come with it. But I have no clue how to do it. I'm kinda new to Jekyll.
My first thought was to somehow use config.yml but again I didn't know how to approach it or what question to formulate in google. I was hoping one of you could point me in the right direction.