Browse Source

Adding "Bad Faith" and "Opposition" pieces to gallery

master
Mobius K 10 months ago
parent
commit
46196d9439
  1. BIN
      assets/gallery/bad-faith.png
  2. BIN
      assets/gallery/opposition.png
  3. 2
      data/content.yaml
  4. 20
      layouts/partials/gallery.html
  5. 5
      layouts/partials/lightbox.html

BIN
assets/gallery/bad-faith.png (Stored with Git LFS)

size 8539949

BIN
assets/gallery/opposition.png (Stored with Git LFS)

size 8215978

2
data/content.yaml

@ -62,3 +62,5 @@ gallery:
august-dantalian-v2.png: August Dantalian
astarion.png: Astarion
hiram.jpg: Hiram
opposition.png: Opposition
bad-faith.png: Bad Faith

20
layouts/partials/gallery.html

@ -4,8 +4,18 @@
<div class="uk-child-width-1-2@s" uk-grid>
{{ partial "lightbox" (merge $defaults (dict "file" "molten-core.png")) }}
{{ partial "lightbox" (merge $defaults (dict "file" "stained-glass.png")) }}
<div class="uk-width-1-1">
{{ partial "lightbox" (merge $defaults (dict "file" "bad-faith.png" "previewWidth" 1344)) }}
</div>
<div class="uk-width-1-1">
<div class="uk-child-width-1-1@s uk-child-width-1-3@m" uk-grid>
{{ partial "lightbox" (merge $defaults (dict "file" "opposition.png")) }}
{{ partial "lightbox" (merge $defaults (dict "file" "molten-core.png")) }}
{{ partial "lightbox" (merge $defaults (dict "file" "stained-glass.png")) }}
</div>
</div>
{{ partial "lightbox" (merge $defaults (dict "file" "astarion.png")) }}
{{ partial "lightbox" (merge $defaults (dict "file" "frostwolf-v2.png")) }}
{{ partial "lightbox" (merge $defaults (dict "file" "nightshade-v2.png")) }}
@ -23,8 +33,10 @@
</div>
{{ partial "lightbox" (merge $defaults (dict "file" "honey.jpg")) }}
{{ partial "lightbox" (merge $defaults (dict "file" "emrys.png")) }}
{{ partial "lightbox" (merge $defaults (dict "file" "wisp.png")) }}
<div class="uk-width-1-1">
{{ partial "lightbox" (merge $defaults (dict "file" "wisp.png" "previewWidth" 1344)) }}
</div>
</div>

5
layouts/partials/lightbox.html

@ -19,8 +19,9 @@
{{ $lightbox = $lightbox.Resize "1600x q100" }}
{{ end }}
{{ if gt $preview.Width 652 }}
{{ $preview = $preview.Resize "652x q100" }}
{{ $previewWidth := default 652 .previewWidth }}
{{ if gt $preview.Width $previewWidth }}
{{ $preview = $preview.Resize (print $previewWidth "x q100") }}
{{ end }}
<!-- Link and display the image URLs for the Lightbox -->

Loading…
Cancel
Save