fix: multi-file gist styling

master
Aravinth Manivannan 2022-03-14 11:10:31 +05:30
parent 5bdbdaf267
commit 2bd3b38869
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
1 changed files with 22 additions and 25 deletions

View File

@ -18,18 +18,15 @@
{% for payload_file in payload.gist.files %}
<div class="gist_file">
{% if "file" in payload_file.content %}
{% include "gist_filename" %}
{% include "gist_textfile" %}
{% elif "dir" in payload_file.content %}
{% for payload_file in payload_file.content.dir %}
{% include "gist_filename" %}
{% if "file" in payload_file.content %}
{% include "gist_textfile" %}
{% endif %}
</div>
{% if "dir" in payload_file.content %}
{% for payload_file in payload_file.content.dir %}
<div class="gist_file">
{% include "gist_filename" %}
{% include "gist_textfile" %}
</div>
{% endfor %}
{% endif %}