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
<img {{ with .Resources }}
{{ with .Resources }} {{ with .GetMatch "{*.*,*.jpg,*.png,*.jpeg}" }}
{{ with .GetMatch "{*.*,*.jpg,*.png,*.jpeg}" }} {{ $photo := .Fill "600x600" }}
{{ $photo := .Fill "600x600" }} {{ with $photo }}
{{ with $photo }} src='{{ .Permalink }}'
src='{{ .Permalink }}' {{ end }}
{{ end }}
{{ end }}
{{ end }} {{ end }}
alt="{{ .Params.imagealt }}"/> {{ end }}
</a> alt="{{ .Params.imagealt }}"/>
</li> </a>
\ No newline at end of file
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<ul class="posts-list latest-photos"> <ul class="posts-list latest-photos">
{{- $section := where .Data.Pages "Section" .Section -}} {{- $section := where .Data.Pages "Section" .Section -}}
{{- range $section -}} {{- range $section -}}
{{ partial "summary-photo.html" . }} <li class="post photo-post">{{ partial "summary-photo.html" . }}</li>
{{ end }} {{ end }}
</ul> </ul>
{{ end }} {{ 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