Skip to content

Commit

Permalink
fix tag cloud bug #26 #28 #30
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaohaoyang committed Jun 13, 2016
1 parent 5e883b2 commit d130f07
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,12 @@ <h2>
{% assign min = tag[1].size %}
{% endif %}
{% endfor %}
{% assign diff = max | minus: min %}

{% if max == min %}
{% assign diff = 1 %}
{% else %}
{% assign diff = max | minus: min %}
{% endif %}

{% for tag in site.tags %}
{% assign temp = tag[1].size | minus: min | times: 36 | divided_by: diff %}
Expand Down

0 comments on commit d130f07

Please sign in to comment.