Skip to content

Commit 685090c

Browse files
committed
Fixed: broken layout
1 parent d735401 commit 685090c

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

Diff for: _layouts/product.html

+16-8
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,22 @@ <h3>{{ page.title }} とは</h3>
9797

9898
<div>
9999
<h3>主な特徴</h3>
100-
<div class="feature row">
101-
{% for feature in page.features %}
102-
<div class="col-sm-6 {% cycle 'prepend-1', 'append-1 last' %}">
103-
<h5>{{ feature.name }}</h5>
104-
<div><img class="ss" src="{{ feature.image }}" /></div>
105-
</div>
106-
{% endfor %}
107-
</div>
100+
{% for feature in page.features %}
101+
{% capture thecycle %}{% cycle 'odd', 'even' %}{% endcapture %}
102+
{% if thecycle == 'odd' %}
103+
<div class="feature row">
104+
<div class="col-md-offset-1 col-sm-5">
105+
<h5>{{ feature.name }}</h5>
106+
<div><img class="ss" src="{{ feature.image }}" /></div>
107+
</div>
108+
{% else %}
109+
<div class="col-sm-5">
110+
<h5>{{ feature.name }}</h5>
111+
<div><img class="ss" src="{{ feature.image }}" /></div>
112+
</div>
113+
</div>
114+
{% endif %}
115+
{% endfor %}
108116
</div>
109117

110118
<div>

0 commit comments

Comments
 (0)