mirror of
https://github.com/Aroy-Art/Rinkusu.git
synced 2024-12-27 07:04:23 +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">
|
||||
{{ $category := .name }}
|
||||
{{ range .portfolio_items }}
|
||||
<a class="masonry-item" href="{{ .image | absURL }}" data-lightbox="{{ $category }}" data-title="{{ .name }}">
|
||||
<img src="{{ .image_thumb | absURL }}" alt="" class="masonry-content">
|
||||
{{- $original := resources.Get .image -}}
|
||||
{{ $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>
|
||||
{{ end }}
|
||||
</div>
|
Loading…
Reference in a new issue