From 7ea09b39f2d257f18a436a94438edc705d1d5b52 Mon Sep 17 00:00:00 2001 From: JotaChina Date: Thu, 22 May 2025 17:43:16 -0300 Subject: [PATCH] =?UTF-8?q?caminhos=20de=20=C3=A1udio=20nos=20instrumentos?= =?UTF-8?q?=20em=20projetos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _layouts/projetos.html | 47 +++++++++++++++--------------------------- 1 file changed, 17 insertions(+), 30 deletions(-) diff --git a/_layouts/projetos.html b/_layouts/projetos.html index f6871c4..7dfda6a 100644 --- a/_layouts/projetos.html +++ b/_layouts/projetos.html @@ -88,9 +88,8 @@ title: "{{ page.file }}" {% if page.tracks and page.tracks.size > 0 %}
-

🎚️ Instrumentos

+

🎚️ Instrumentos

-
    {% for track in page.tracks %} {% assign tem_instr = false %} @@ -105,42 +104,30 @@ title: "{{ page.file }}" {% endif %} {% if tem_instr %} -
      - {% for instrument in track.instruments %} - {% if instrument.instrument_name %} -
    • - - {% assign instrument_slug = instrument.instrument_name | replace: ' ', '+' %} - - {{ instrument.instrument_name }} - +
        + {% for instrument in track.instruments %} + {% if instrument.instrument_name %} +
      • + + {% assign instrument_slug = instrument.instrument_name | replace: ' ', '+' %} - - {% assign found_audio = false %} - - {% for audio_file in site.data.src_audio_files %} - {% if audio_file contains instrument.instrument_name %} - {% assign audio_file_path = audio_file %} - audio_file_path - {% assign found_audio = true %} + + {{ instrument.instrument_name }} + + + {% if instrument.audiofileprocessor and instrument.audiofileprocessor.src %} +
        - {% break %} {% endif %} - {% endfor %} - - {% if found_audio == false %} -

        Áudio não encontrado para este instrumento.

        +
      • {% endif %} - - - {% endif %} - {% endfor %} -
      + {% endfor %} +
    {% endif %} {% endif %}