[new feature] gallery mode "remote" added

This commit is contained in:
zzossig 2020-03-04 17:54:50 +09:00
parent 5650f3705d
commit b48d4ed627
1 changed files with 18 additions and 1 deletions

View File

@ -28,8 +28,25 @@
{{ partial "pagination/pagination-single" . }} {{ partial "pagination/pagination-single" . }}
</main> </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"> <main class="gallery main">
<div class="grid gallery__container"> <div class="grid gallery__container">
<div class="grid-sizer"></div> <div class="grid-sizer"></div>