Merge pull request #151 from Anheledir/master

Fixes #154
This commit is contained in:
Panos Sakkos 2016-03-05 16:28:55 +01:00
commit d063de0883
2 changed files with 8 additions and 3 deletions

View file

@ -20,9 +20,12 @@
<div>
{% for post in site.posts %}
{% if post.tags contains tag %}
{% include post-list.html%}
{% endif %}
{% for t in post.tags %}
{% capture tg %}{{ t | downcase }}{% endcapture %}
{% if tg == tag %}
{% include post-list.html%}
{% endif %}
{% endfor %}
{% endfor %}
</div>

View file

@ -12,6 +12,8 @@ Dir.foreach(POSTS_DIR) do |post|
unless (postYaml['tags'] == nil)
postYaml['tags'].each{|tag|
tag.downcase!
unless File.exist?(TAGS_DIR + tag + '.html')
puts('[+] Generating #' + tag + ' page')