commit
d063de0883
2 changed files with 8 additions and 3 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue