浏览代码

Link gallery images to the pages they're first used in

Scot Hacker 8 年之前
父节点
当前提交
7837f32e09
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bakerydemo/templates/tags/gallery.html

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

@@ -3,7 +3,7 @@
 {% for img in images %}
 {% image img fill-285x200-c100 as img_obj %}
 <div class="col-sm-6">
-	<a href="">
+	<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>