Skip to content

Commit

Permalink
[new feature] gallery mode "remote" added
Browse files Browse the repository at this point in the history
  • Loading branch information
zzossig committed Mar 4, 2020
1 parent 5650f37 commit b48d4ed
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion layouts/gallery/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,25 @@ <h3 class="terms__title h3">{{ .Title }}</h3>
{{ partial "pagination/pagination-single" . }}
</main>

{{ else }}
{{ else if eq (lower .Params.mode) "remote" }}
<main class="gallery main">
<div class="grid gallery__container">
<div class="grid-sizer"></div>
{{ range .Params.Images }}
<div class="grid-item">
<img src="{{ .image }}" alt="{{ print .caption }}" />
<div class="grid-item__desc hide">
<span class="grid-item__desc--text">
{{ .caption }}
</span>
</div>
</div>
{{ end }}
</div>
{{ partial "pagination/pagination-single" . }}
</main>

{{ else }}
<main class="gallery main">
<div class="grid gallery__container">
<div class="grid-sizer"></div>
Expand Down

0 comments on commit b48d4ed

Please sign in to comment.