diff --git a/pages/projetos.md b/pages/projetos.md index 2c410662..eb352ab0 100755 --- a/pages/projetos.md +++ b/pages/projetos.md @@ -4,338 +4,461 @@ title: MMPSearch - Projetos permalink: /projetos/ --- +{% assign list_bpm = "" %} +{% assign list_plugins = "" %} +{% assign list_instruments = "" %} +{% assign list_samples = "" %} +{% assign list_bassline = "" %} +{% assign list_automation = "" %} + +{% for p in site.data.all %} + {% 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 %}{% assign list_instruments = list_instruments | append: inst.instrument_name | append: "|||" %}{% 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 %} +{% endfor %} + +{% assign unique_bpm = list_bpm | split: "|||" | uniq | sort %} +{% assign unique_plugins = list_plugins | split: "|||" | uniq | sort %} +{% assign unique_instruments = list_instruments | split: "|||" | uniq | sort %} +{% assign unique_samples = list_samples | split: "|||" | uniq | sort %} +{% assign unique_bassline = list_bassline | split: "|||" | uniq | sort %} +{% assign unique_automation = list_automation | split: "|||" | uniq | sort %} +
-
+

-
+
{% include sidebar.html %}
-
-

📁 Projetos Disponíveis

-

- Explore, ouça e reutilize projetos da comunidade LMMS. -

-
+
+
+

📁 Projetos Disponíveis

+

+ Use o menu lateral para filtrar projetos por BPM, Plugin, Instrumento, etc. +

+
+
+ +
-
- {% assign project_pages = site.pages | where_exp: "page", "page.path contains 'projetos/'" | sort: "title" %} - {% for page in project_pages %} - {% if page.url != '/projetos/' %} -
- -
- - -
- -
- - - -
- -

- {{ page.title | default: page.name | replace: '.html', '' }} -

- - {% if page.bpm %} -
- - 🎵 {{ page.bpm }} BPM - -
- {% else %} -
- {% endif %} - -
- -
- - {% assign inst_tags = page.tags.instruments | default: page.tags.instrument %} - {% if inst_tags and inst_tags.size > 0 %} -
- -
- 🎸 INSTRUMENTS -
- -
-
-
- {% endif %} - - {% if page.tags.plugin and page.tags.plugin.size > 0 %} -
- -
- 🔌 PLUGINS -
- -
-
- {% for tag in page.tags.plugin %} - {% if tag != "" %} - {{ tag | truncate: 18 }} - {% endif %} - {% endfor %} -
-
- {% endif %} - - {% if page.tags.bassline and page.tags.bassline.size > 0 %} -
- -
- 🎹 BASSLINE -
- -
-
- {% for tag in page.tags.bassline %} - {% if tag != "" %} - {{ tag | truncate: 18 }} - {% endif %} - {% endfor %} -
-
- {% 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 %} - -
+
+ +
+
+ +
+ +
+ {% for item in unique_bpm %} + {% if item != "" %} +
+ +
+ {% endif %} + {% endfor %}
- +
+
-
- - Ver - +
+ Instrumentos +
+ {% for item in unique_instruments %}{% if item != "" %} + + {% endif %}{% endfor %} +
+
+
- {% assign creation_url = '/mmpSearch/creation.html?project=' | append: page.file %} - {% assign embed_url = creation_url | append: '&embed=true' %} +
+ Plugins +
+ {% for item in unique_plugins %}{% if item != "" %} + + {% endif %}{% endfor %} +
+
+
- - Editar - -
+
+ Bassline +
+ {% for item in unique_bassline %}{% if item != "" %} + + {% endif %}{% endfor %} +
+
+
+ +
+ Automação +
+ {% for item in unique_automation %}{% if item != "" %} + + {% endif %}{% endfor %} +
+
+
+ +
+ Samples +
+ {% for item in unique_samples %}{% if item != "" %} + + {% endif %}{% endfor %} +
+
-
- {% endif %} - {% endfor %} +
+ +
+ + + +
+ {% assign project_pages = site.pages | where_exp: "page", "page.path contains 'projetos/'" | sort: "title" %} + {% for page in project_pages %} + {% if page.url != '/projetos/' %} + + {% assign p_bpm = page.bpm | append: "" %} + {% 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_instruments = page.tags.instruments | default: page.tags.instrument | join: ',' %} + +
+ +
+ + +
+ +
+ + + +
+ +

+ {{ page.title | default: page.name | replace: '.html', '' }} +

+ + {% if page.bpm %} +
+ + 🎵 {{ page.bpm }} BPM + +
+ {% else %} +
+ {% endif %} + +
+ +
+ + {% assign inst_tags = page.tags.instruments | default: page.tags.instrument %} + {% if inst_tags and inst_tags.size > 0 %} +
+ +
🎸 INSTRUMENTS
+ +
+
+
+ {% endif %} + + {% if page.tags.plugin and page.tags.plugin.size > 0 %} +
+ +
🔌 PLUGINS
+ +
+
+ {% for tag in page.tags.plugin %}{% if tag != "" %} + {{ tag | truncate: 18 }} + {% endif %}{% endfor %} +
+
+ {% endif %} + + {% if page.tags.bassline and page.tags.bassline.size > 0 %} +
+ +
🎹 BASSLINE
+ +
+
+ {% for tag in page.tags.bassline %}{% if tag != "" %} + {{ tag | truncate: 18 }} + {% endif %}{% endfor %} +
+
+ {% 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 %} + +
+
+ + +
+ + Ver + + + {% assign creation_url = '/mmpSearch/creation.html?project=' | append: page.file %} + {% assign embed_url = creation_url | append: '&embed=true' %} + + + Editar + +
+ +
+
+ {% endif %} + {% endfor %} +
+ + + +
- -

-
- +{% include preview-modal.html %} \ No newline at end of file