Skip to content

Commit 190da97

Browse files
committed
Fix bug: missing close div tag in forloop
1 parent e1e274c commit 190da97

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

index.html

+2-6
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,7 @@ <h3 class="headline rich_font">DecaDojo 開催例</h3>
194194
{% if index == 0 %}
195195
<div class='index_box_list clearfix' style='padding-top: 0px;'>
196196
{% endif %}
197-
<div class='box clearfix'
198-
{% if index == 2 %}style='margin-bottom: 40px;'
199-
{% else %} style='margin-bottom: 40px;'
200-
{% endif %}
201-
>
197+
<div class='box clearfix'>
202198
<div class="image">
203199
<a href="{{ event.url }}">
204200
<img src="/img/events/{{ event.img }}" title="DecaDojo @ {{ event.title }}" alt="DecaDojo @ {{ event.title }}" />
@@ -215,7 +211,7 @@ <h4 class="headline rich_font">in {{ event.title }}</h4>
215211
<a href="{{ event.url }}" class="link">詳細を見る</a>
216212
</div>
217213
</div>
218-
{% if index == 2 %}
214+
{% if forloop.last or index == 2 %}
219215
</div><!-- END .index_box -->
220216
{% endif %}
221217
{% endfor %}

0 commit comments

Comments
 (0)