diff --git a/pages/projetos.md b/pages/projetos.md index 8032862a..fbca73f0 100755 --- a/pages/projetos.md +++ b/pages/projetos.md @@ -12,7 +12,11 @@ permalink: /projetos/ {% assign list_automation = "" %} {% for p in site.data.all %} - {% if p.bpm %}{% assign list_bpm = list_bpm | append: p.bpm | append: "|||" %}{% endif %} + {% assign raw_bpm = p.bpm | append: "" %} + {% if raw_bpm != "" and raw_bpm != "N/A" and raw_bpm != "nil" %} + {% assign list_bpm = list_bpm | append: raw_bpm | append: "|||" %} + {% endif %} + {% for item in p.tags.plugin %}{% if item != "" %}{% assign list_plugins = list_plugins | append: item | append: "|||" %}{% endif %}{% endfor %} {% if p.tags.bassline %}{% for item in p.tags.bassline %}{% if item != "" %}{% assign list_bassline = list_bassline | append: item | append: "|||" %}{% endif %}{% endfor %}{% endif %} {% if p.tags.automation %}{% for item in p.tags.automation %}{% if item != "" %}{% assign list_automation = list_automation | append: item | append: "|||" %}{% endif %}{% endfor %}{% endif %} @@ -35,8 +39,8 @@ permalink: /projetos/ {% assign min_limit = 0 %} {% assign max_limit = 300 %} {% if unique_bpm_array.size > 0 %} - {% assign min_limit = unique_bpm_array | first | minus: 0 %} - {% assign max_limit = unique_bpm_array | last | plus: 0 %} + {% assign last_bpm = unique_bpm_array | last | plus: 0 %} + {% if last_bpm > max_limit %}{% assign max_limit = last_bpm %}{% endif %} {% endif %}