File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -194,11 +194,7 @@ <h3 class="headline rich_font">DecaDojo 開催例</h3>
194
194
{% if index == 0 %}
195
195
< div class ='index_box_list clearfix ' style ='padding-top: 0px; '>
196
196
{% 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 '>
202
198
< div class ="image ">
203
199
< a href ="{{ event.url }} ">
204
200
< 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>
215
211
< a href ="{{ event.url }} " class ="link "> 詳細を見る</ a >
216
212
</ div >
217
213
</ div >
218
- {% if index == 2 %}
214
+ {% if forloop.last or index == 2 %}
219
215
</ div > <!-- END .index_box -->
220
216
{% endif %}
221
217
{% endfor %}
You can’t perform that action at this time.
0 commit comments