Commit e4b9a7ff authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Move list item out of summary-photo so that partial can be used outside of lists

parent 469e9517
<li class="post photo-post">
<a href="{{.Permalink}}">
<a href="{{.Permalink}}">
<img
{{ with .Resources }}
{{ with .GetMatch "{*.*,*.jpg,*.png,*.jpeg}" }}
......@@ -10,5 +9,4 @@
{{ end }}
{{ end }}
alt="{{ .Params.imagealt }}"/>
</a>
</li>
\ No newline at end of file
</a>
......@@ -8,7 +8,7 @@
<ul class="posts-list latest-photos">
{{- $section := where .Data.Pages "Section" .Section -}}
{{- range $section -}}
{{ partial "summary-photo.html" . }}
<li class="post photo-post">{{ partial "summary-photo.html" . }}</li>
{{ end }}
</ul>
{{ end }}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment