Scot Hacker 8 年 前
コミット
6ddf4a3e23
1 ファイル変更10 行追加10 行削除
  1. 10 10
      bakerydemo/templates/tags/gallery.html

+ 10 - 10
bakerydemo/templates/tags/gallery.html

@@ -1,14 +1,14 @@
 {% load wagtailimages_tags %}
 
 {% for img in images %}
-{% image img fill-285x200-c100 as img_obj %}
-<div class="col-sm-6">
-	<a href="{{img_obj.image.get_usage.first.specific.url}}">
-		<figure class="gallery-figure">
-			<img src="{{img_obj.url}}" class="img-responsive" />
-			<figcaption>{{ img.title }}</figcaption>
-		</figure>
-	</a>
-</div>
-{{ image.title }}
+	{% image img fill-285x200-c100 as img_obj %}
+	<div class="col-sm-6">
+		<a href="{{img_obj.image.get_usage.first.specific.url}}">
+			<figure class="gallery-figure">
+				<img src="{{img_obj.url}}" class="img-responsive" />
+				<figcaption>{{ img.title }}</figcaption>
+			</figure>
+		</a>
+	</div>
+	{{ image.title }}
 {% endfor %}