From cf83d63ad47817939506645223a84a2059e31977 Mon Sep 17 00:00:00 2001 From: JotaChina Date: Tue, 16 Dec 2025 20:13:34 -0300 Subject: [PATCH] reformula buscas --- pages/projetos.md | 612 +++++++++++++++++++++++++++++----------------- 1 file changed, 393 insertions(+), 219 deletions(-) diff --git a/pages/projetos.md b/pages/projetos.md index 3f533e89..d8718c21 100755 --- a/pages/projetos.md +++ b/pages/projetos.md @@ -12,25 +12,14 @@ permalink: /projetos/ {% assign list_automation = "" %} {% for p in site.data.all %} - {% if p.bpm %} - {% assign list_bpm = list_bpm | append: p.bpm | append: "|||" %} - {% endif %} - + {% if p.bpm %}{% assign list_bpm = list_bpm | append: p.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 %} {% for track in p.tracks %} - {% if track.instruments %} - {% for inst in track.instruments %} - {% if inst.instrument_name and inst.instrument_name != "" %} - {% assign list_instruments = list_instruments | append: inst.instrument_name | append: "|||" %} - {% endif %} - {% endfor %} - {% elsif track.instrument_name and track.instrument_name != "" %} - {% assign list_instruments = list_instruments | append: track.instrument_name | append: "|||" %} - {% endif %} - + {% if track.instruments %}{% for inst in track.instruments %}{% if inst.instrument_name %}{% assign list_instruments = list_instruments | append: inst.instrument_name | append: "|||" %}{% endif %}{% endfor %} + {% elsif track.instrument_name %}{% assign list_instruments = list_instruments | append: track.instrument_name | append: "|||" %}{% endif %} {% if track.sample %}{% for smp in track.sample %}{% assign list_samples = list_samples | append: smp.sample_name | append: "|||" %}{% endfor %} {% elsif track.sample_name %}{% assign list_samples = list_samples | append: track.sample_name | append: "|||" %}{% endif %} {% endfor %} @@ -59,33 +48,112 @@ permalink: /projetos/ {% include sidebar.html %} -
+

📁 Projetos Disponíveis

- Busca avançada: Use o slicer de BPM ou filtros de tag para encontrar o projeto ideal. + Use os filtros laterais ou a barra de IA abaixo para explorar.

+
+
+
+ + Filtros IA, Gêneros & Ordenação +
+ +
+ + +
+
- +
- - - +

@@ -102,7 +170,6 @@ permalink: /projetos/
-

Projetos entre esses valores.


@@ -130,38 +197,21 @@ permalink: /projetos/
-
- Bassline +
Bassline
- {% for item in unique_bassline %}{% if item != "" %} - - {% endif %}{% endfor %} + {% for item in unique_bassline %}{% if item != "" %}{% endif %}{% endfor %}

- -
- Automação +
Automação
- {% for item in unique_automation %}{% if item != "" %} - - {% endif %}{% endfor %} + {% for item in unique_automation %}{% if item != "" %}{% endif %}{% endfor %}

- -
- Samples +
Samples
- {% for item in unique_samples %}{% if item != "" %} - - {% endif %}{% endfor %} + {% for item in unique_samples %}{% if item != "" %}{% endif %}{% endfor %}
@@ -181,29 +231,20 @@ permalink: /projetos/ {% assign p_insts_array = "" | split: "," %} {% for track in page.tracks %} - {% if track.instruments %} - {% for inst in track.instruments %} - {% if inst.instrument_name %} - {% assign p_insts_array = p_insts_array | push: inst.instrument_name %} - {% endif %} - {% endfor %} - {% elsif track.instrument_name %} - {% assign p_insts_array = p_insts_array | push: track.instrument_name %} - {% endif %} + {% if track.instruments %}{% for inst in track.instruments %}{% if inst.instrument_name %}{% assign p_insts_array = p_insts_array | push: inst.instrument_name %}{% endif %}{% endfor %} + {% elsif track.instrument_name %}{% assign p_insts_array = p_insts_array | push: track.instrument_name %}{% endif %} {% endfor %} {% assign p_instruments_str = p_insts_array | uniq | join: ',' %} - - {% assign p_bpm = page.bpm | default: 0 %} {% assign p_plugins = page.tags.plugin | join: ',' %} {% assign p_bassline = page.tags.bassline | join: ',' %} {% assign p_automation = page.tags.automation | join: ',' %} {% assign p_samples = page.tags.sample | join: ',' %} - {% assign p_name = page.title | default: page.name | downcase %}
{% endif %} @@ -285,35 +321,6 @@ permalink: /projetos/
{% endif %} - - {% if page.tags.automation and page.tags.automation.size > 0 %} -
- -
🎚️ AUTOMATION
- -
-
- {% for tag in page.tags.automation %}{% if tag != "" %} - {{ tag | truncate: 18 }} - {% endif %}{% endfor %} -
-
- {% endif %} - - {% if page.tags.sample and page.tags.sample.size > 0 %} -
- -
🎤 SAMPLES
- -
-
- {% for tag in page.tags.sample %}{% if tag != "" %} - {{ tag | truncate: 18 }} - {% endif %}{% endfor %} -
-
- {% endif %} - @@ -324,19 +331,17 @@ permalink: /projetos/ data-modal-title="Detalhes: {{ page.file }}" data-full-btn-text="Ir para Página" data-full-btn-link="{{ page.url | relative_url }}" - style="color: #5b7da3; font-size: 0.8rem; font-weight: 600; border-right: 1px solid #eee; transition: background 0.2s;"> + style="color: #5b7da3; font-size: 0.8rem; font-weight: 600; border-right: 1px solid #eee;"> Ver - {% assign creation_url = '/mmpSearch/creation.html?project=' | append: page.file %} {% assign embed_url = creation_url | append: '&embed=true' %} - + style="color: #3273dc; font-size: 0.8rem; font-weight: 600;"> Editar @@ -349,7 +354,7 @@ permalink: /projetos/ @@ -361,7 +366,7 @@ permalink: /projetos/ {% include preview-modal.html %}