upload de projetos funcional + busca por bpm
This commit is contained in:
1 parent
764bceec4d
commit
c7ff7f5702
1 file changed
+7
-5
+7
-5
@@ -40,9 +40,11 @@ permalink: /beats/
|
|||||||
{% assign project_url = "" %}
|
{% assign project_url = "" %}
|
||||||
|
|
||||||
{% for projeto in site.data.all %}
|
{% for projeto in site.data.all %}
|
||||||
{% if projeto.file == file_name_clean %}
|
{% assign proj_slug = projeto.file | slugify %}
|
||||||
{% assign project_slug = projeto.file | slugify %}
|
{% assign beat_slug = file_name_clean | slugify %}
|
||||||
{% assign project_url = "/projetos/" | append: project_slug | append: ".html" %}
|
|
||||||
|
{% if proj_slug == beat_slug %}
|
||||||
|
{% assign project_url = "/projetos/" | append: proj_slug | append: ".html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
@@ -58,7 +60,7 @@ permalink: /beats/
|
|||||||
|
|
||||||
<div class="audio-wrapper" style="width: 100%;">
|
<div class="audio-wrapper" style="width: 100%;">
|
||||||
<audio class="audio-player" controls style="width: 100%; height: 32px; border-radius: 20px;">
|
<audio class="audio-player" controls style="width: 100%; height: 32px; border-radius: 20px;">
|
||||||
<source src="/mmpSearch/src_mmpSearch/wav/{{ filename }}" type="audio/wav">
|
<source src="/mmpSearch/src_mmpSearch/wav/{{ filename | url_encode }}" type="audio/wav">
|
||||||
Seu navegador não suporta áudio.
|
Seu navegador não suporta áudio.
|
||||||
</audio>
|
</audio>
|
||||||
</div>
|
</div>
|
||||||
@@ -71,7 +73,7 @@ permalink: /beats/
|
|||||||
{% else %}
|
{% else %}
|
||||||
<div class="column is-12">
|
<div class="column is-12">
|
||||||
<div class="notification is-warning has-text-centered">
|
<div class="notification is-warning has-text-centered">
|
||||||
Nenhum beat encontrado no manifesto (beats.json). Tente fazer um upload novo para regenerar a lista.
|
Nenhum beat encontrado (beats.json vazio ou inexistente).
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in new issue
Block a user