mirror of
https://github.com/Aroy-Art/Rinkusu.git
synced 2024-12-28 15:14:22 +01:00
Moved portfolio.html to layouts/static
This commit is contained in:
parent
7a7ef4a8c1
commit
21621a52ae
1 changed files with 5 additions and 2 deletions
|
@ -41,8 +41,11 @@
|
||||||
<div class="masonry">
|
<div class="masonry">
|
||||||
{{ $category := .name }}
|
{{ $category := .name }}
|
||||||
{{ range .portfolio_items }}
|
{{ range .portfolio_items }}
|
||||||
<a class="masonry-item" href="{{ .image | absURL }}" data-lightbox="{{ $category }}" data-title="{{ .name }}">
|
{{- $original := resources.Get .image -}}
|
||||||
<img src="{{ .image_thumb | absURL }}" alt="" class="masonry-content">
|
{{ $thumb := $original.Fit "512x512" }}
|
||||||
|
{{ $image := $original.Fit "1080x1080" }}
|
||||||
|
<a class="masonry-item" href="{{ $image.RelPermalink }}" data-lightbox="{{ $category }}" data-title="{{ .name }}">
|
||||||
|
<img src="{{ $thumb.RelPermalink }}" alt="" class="masonry-content">
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
Loading…
Reference in a new issue