Use flex for gallery images
This commit is contained in:
parent
ccb0f2e17c
commit
c90ae131ce
2 changed files with 9 additions and 1 deletions
|
@ -80,3 +80,8 @@ footer {
|
||||||
border: 1px black solid;
|
border: 1px black solid;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gallery-con {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
|
@ -13,8 +13,9 @@
|
||||||
{{ range sort .years "year" "desc" }}
|
{{ range sort .years "year" "desc" }}
|
||||||
<h4>{{ .year }}</h4>
|
<h4>{{ .year }}</h4>
|
||||||
|
|
||||||
|
<div class="gallery-con">
|
||||||
{{ range .pieces }}
|
{{ range .pieces }}
|
||||||
<figure>
|
<figure class="gallery-fig">
|
||||||
{{ $full := resources.Get (printf "%s/%s" ($.Param "json") .filename) }}
|
{{ $full := resources.Get (printf "%s/%s" ($.Param "json") .filename) }}
|
||||||
|
|
||||||
<a href="{{ $full.Permalink }}">
|
<a href="{{ $full.Permalink }}">
|
||||||
|
@ -41,6 +42,8 @@
|
||||||
</figcaption>
|
</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue