1
0
Fork 0
This repository has been archived on 2023-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
kekskurse.de-old/layouts/shortcodes/gallery-all.html
2020-11-11 15:43:41 +01:00

20 lines
625 B
HTML

<link rel="stylesheet" href="/css/justifiedGallery.min.css" />
<script src="/js/jquery-3.5.1.min.js"></script>
<script src="/js/jquery.justifiedGallery.min.js"></script>
{{ $pages := where (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) ".Params.gallery" "!=" nil }}
<div id="all" >
{{ range $pages }}
<a style="border-bottom: 5px solid transparent" href="{{ .RelPermalink }}">
<img alt="{{ .Title }}" src="{{.Params.gallery}}"/>
</a>
{{ end }}
</div>
<div style="clear: both;"></div>
<script>
$("#all").justifiedGallery({
rowHeight : 250,
margins : 5,
lastRow : 'nojustify',
});
</script>