Browse Source

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

Scot Hacker 8 years ago
parent
commit
7837f32e09
1 changed files with 1 additions and 1 deletions
  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>