2022-02-06 00:27:02 +01:00
|
|
|
{% extends "frame.twig" %}
|
2021-04-21 22:42:23 +02:00
|
|
|
|
|
|
|
{% block title %}
|
2022-10-21 22:35:12 +02:00
|
|
|
{{ title }}
|
2021-04-21 22:42:23 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
2022-10-21 22:35:12 +02:00
|
|
|
{% block mainContent %}
|
|
|
|
<article>
|
2022-11-01 00:07:19 +01:00
|
|
|
<h1>{{ title }}</h1>
|
|
|
|
<p>{{ content | raw }}</p>
|
|
|
|
</article>
|
|
|
|
<section role="page-meta">
|
|
|
|
<div>
|
|
|
|
<h2>Files</h2>
|
|
|
|
{% for doc in files %}
|
|
|
|
{% if doc.type != "mp3" %}
|
|
|
|
{% set path = doc.file|split('/') %}
|
|
|
|
<a href="{{ doc.file }}">{{ path[6] }}</a>
|
2022-10-21 22:35:12 +02:00
|
|
|
|
2022-11-01 00:07:19 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h2>Sounds</h2>
|
|
|
|
{% for doc in files %}
|
|
|
|
{% if doc.type == "mp3" %}
|
|
|
|
<audio controls>
|
|
|
|
<source src="{{ doc.file }}" type="audio/mpeg">
|
|
|
|
Your browser does not support the audio element.
|
|
|
|
</audio>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h2>Info</h2>
|
|
|
|
{{ meta['who'] }}
|
|
|
|
dropped this
|
|
|
|
{{ meta['when'] }}<br/>
|
2022-10-21 22:35:12 +02:00
|
|
|
|
2022-11-01 00:07:19 +01:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h2>Tags</h2>
|
|
|
|
{% for tag in meta['tags'] %}
|
|
|
|
{% if dynamicRender is defined %}
|
|
|
|
{% if dynamicRender == 'true' %}
|
|
|
|
<a href="{{ "/tags/"~tag.slug }}">{{ tag.label }}</a>
|
2022-10-21 22:35:12 +02:00
|
|
|
{% else %}
|
|
|
|
<a href="{{ "/tags/"~tag.slug~".html" }}">{{ tag.label }}</a>
|
|
|
|
{% endif %}
|
2022-11-01 00:07:19 +01:00
|
|
|
{% else %}
|
|
|
|
<a href="{{ "/tags/"~tag.slug~".html" }}">{{ tag.label }}</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2022-10-21 22:35:12 +02:00
|
|
|
</div>
|
2022-11-01 00:07:19 +01:00
|
|
|
</section>
|
|
|
|
|
2022-10-21 22:35:12 +02:00
|
|
|
{% endblock %}
|