Upgrade interface do MMPSearch
This commit is contained in:
1 parent
c9b759842b
commit
bf402eb3dd
4 files changed
+54
-88
No files matched your search
+12
-12
@@ -31,29 +31,29 @@ permalink: /sample/
|
||||
|
||||
<div class="p-4" style="background-color: #fff; border-top: 1px solid #cfe8fc;">
|
||||
<div class="tags is-centered are-medium mb-0">
|
||||
{% assign all_automation_string = "" %}
|
||||
{% assign all_sample_string = "" %}
|
||||
|
||||
{% for p in site.data.all %}
|
||||
{% for track in p.tracks %}
|
||||
{% if track.sample %}
|
||||
{% for inst in track.sample %}
|
||||
{% if inst.instrument_name and inst.instrument_name != "" %}
|
||||
{% unless all_automation_string contains inst.instrument_name %}
|
||||
{% assign all_automation_string = all_automation_string | append: inst.instrument_name | append: "|||" %}
|
||||
{% if inst.sample_name and inst.sample_name != "" %}
|
||||
{% unless all_sample_string contains inst.sample_name %}
|
||||
{% assign all_sample_string = all_sample_string | append: inst.sample_name | append: "|||" %}
|
||||
{% endunless %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% elsif track.instrument_name and track.instrument_name != "" %}
|
||||
{% unless all_automation_string contains track.instrument_name %}
|
||||
{% assign all_automation_string = all_automation_string | append: track.instrument_name | append: "|||" %}
|
||||
{% elsif track.sample_name and track.sample_name != "" %}
|
||||
{% unless all_sample_string contains track.sample_name %}
|
||||
{% assign all_sample_string = all_sample_string | append: track.sample_name | append: "|||" %}
|
||||
{% endunless %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{% assign unique_automation = all_automation_string | split: "|||" | sort %}
|
||||
{% assign unique_sample = all_sample_string | split: "|||" | sort %}
|
||||
|
||||
{% for item in unique_automation %}
|
||||
{% for item in unique_sample %}
|
||||
{% if item != "" %}
|
||||
<a href="#" class="tag is-white filter-item clickable-tag"
|
||||
data-value="{{ item }}"
|
||||
@@ -91,10 +91,10 @@ permalink: /sample/
|
||||
{% for track in projeto.tracks %}
|
||||
{% if track.sample %}
|
||||
{% for inst in track.sample %}
|
||||
{% assign project_insts = project_insts | append: inst.instrument_name | append: "," %}
|
||||
{% assign project_insts = project_insts | append: inst.sample_name | append: "," %}
|
||||
{% endfor %}
|
||||
{% elsif track.instrument_name %}
|
||||
{% assign project_insts = project_insts | append: track.instrument_name | append: "," %}
|
||||
{% elsif track.sample_name %}
|
||||
{% assign project_insts = project_insts | append: track.sample_name | append: "," %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
Reference in new issue
Block a user