瀏覽代碼

Remove links from gallery images

Edd Baldry 8 年之前
父節點
當前提交
ca5139240a
共有 1 個文件被更改,包括 4 次插入6 次删除
  1. 4 6
      bakerydemo/templates/tags/gallery.html

+ 4 - 6
bakerydemo/templates/tags/gallery.html

@@ -3,12 +3,10 @@
 {% 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>
+    <figure class="gallery-figure">
+        <img src="{{img_obj.url}}" class="img-responsive" />
+        <figcaption>{{ img.title }}</figcaption>
+    </figure>
 </div>
 {{ image.title }}
 {% endfor %}