tagging options

Tags will display as plain text if a user adds tags to a post. If user
sets 'link-tags: true' in _config.yml, then Jekyll will make a new page
for each tag which lists all posts with given tag (provided the site is
not deployed through GitHub pages)
This commit is contained in:
Pete 2016-07-27 17:11:58 -05:00
parent ce8ece5fc2
commit 0458bf9803
5 changed files with 14 additions and 10 deletions

View file

@ -26,12 +26,16 @@ subtitle: This is where I will tell my friends way too much about me
<a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">[Read&nbsp;More]</a>
</div>
{% if site.show-tags %}
{% if post.tags.size > 0 %}
<div class="blog-tags">
Tags:
{% if site.link-tags %}
{% for tag in post.tags %}
<a href="/tag/{{ tag }}">{{ tag }}</a>
{% endfor %}
{% else %}
{{ post.tags | join: ", " }}
{% endif %}
</div>
{% endif %}