Skip to content

Commit

Permalink
Fix problem with hidden files
Browse files Browse the repository at this point in the history
  • Loading branch information
martignoni committed Dec 24, 2023
1 parent 9705e2d commit 0ff960a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/shortcodes/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
{{- $imageurl := printf "%s/%s" $dir .Name -}}
{{- $imagetitle := index (split .Name ".") 0 -}}
{{- $image := resources.Get $imageurl -}}
{{ if ne .Name ".DS_Store" }}
<li>
<a href="{{ ($image.Fit "1600x1600 q50 webp picture").Permalink }}" title="{{ $imagetitle }}" class="lightbox-image">
<img src="{{ ($image.Fit "300x300 q50 webp picture").Permalink }}" alt="{{ $imagetitle }}" title="{{ $imagetitle }}">
<span>{{ $imagetitle }}</span>
</a>
</li>
{{ end }}
{{ end }}
</ul>

0 comments on commit 0ff960a

Please sign in to comment.