summaryrefslogtreecommitdiff
path: root/templates/entry.liquid
diff options
context:
space:
mode:
Diffstat (limited to 'templates/entry.liquid')
-rw-r--r--templates/entry.liquid44
1 files changed, 24 insertions, 20 deletions
diff --git a/templates/entry.liquid b/templates/entry.liquid
index f5884ae..cbb839a 100644
--- a/templates/entry.liquid
+++ b/templates/entry.liquid
@@ -26,27 +26,31 @@
<a href="/"><img src="/assets/header.jpg" id="header"></a>
<div id='posts'>
- {% unless entry.disabled %}
- <div class='cell' data-id='{{ entry.id }}'>
- <div class='title'>
- <span>{{ entry.title }}</span>
- </div>
- <div class='media'>
- {% for media in entry.media %}
- {% if media.type == 'youtube' %}
- <iframe src="https://www.youtube.com/embed/{{ media.token }}?modestbranding=1&rel=0" width="{{media.width}}" height="{{media.height}}" frameborder="0" allowfullscreen></iframe>
- {% else %}
- <img src="{{media.uri}}">
- {% endif %}
- {% endfor %}
- <a href=""><img id="left" src="/assets/left.png"></a>
- <a href=""><img id="right" src="/assets/right.png"></a>
- </div>
- <div class="content">
- {{ entry.body | newline_to_br }}
+ {% for entry in entries %}
+ {% unless entry.disabled %}
+ <div class='cell' data-id='{{ entry.id }}'>
+ <div class='title'>
+ <span>{{ entry.title }}</span>
+ </div>
+ <div class='media'>
+ {% for media in entry.media %}
+ {% if forloop.index == 1 %}
+ {% if media.type == 'youtube' %}
+ <iframe src="https://www.youtube.com/embed/{{ media.token }}?modestbranding=1&rel=0" width="{{media.width}}" height="{{media.height}}" frameborder="0" allowfullscreen></iframe>
+ {% else %}
+ <img src="{{media.uri}}">
+ {% endif %}
+ {% endif %}
+ {% endfor %}
+ </div>
+ <div class="content">
+ {{ entry.body | newline_to_br }}
+ </div>
</div>
- </div>
- {% endunless %}
+ {% endunless %}
+ {% endfor %}
+ <a href="#"><img src="/assets/left" id="left"></a>
+ <a href="#"><img src="/assets/left" id="right"></a>
</div>
<div id="footer">