More misc fixes
This commit is contained in:
parent
43f0f80d95
commit
e4ad208b6e
2 changed files with 10 additions and 9 deletions
|
@ -2,16 +2,17 @@ imagesLoaded(document.querySelector('.grid'), function(instance) {
|
||||||
new Masonry('.grid', {
|
new Masonry('.grid', {
|
||||||
itemSelector: '.grid-item',
|
itemSelector: '.grid-item',
|
||||||
columnWidth: '.grid-sizer',
|
columnWidth: '.grid-sizer',
|
||||||
//percentPosition: true,
|
|
||||||
gutter: '.gutter-sizer'
|
gutter: '.gutter-sizer'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
imagesLoaded(document.querySelector('.second-grid'), function(instance) {
|
const element = document.getElementsByClassName('second-grid');
|
||||||
|
if (element.length > 0) {
|
||||||
|
imagesLoaded(document.querySelector('.second-grid'), function(instance) {
|
||||||
new Masonry('.second-grid', {
|
new Masonry('.second-grid', {
|
||||||
itemSelector: '.grid-item',
|
itemSelector: '.grid-item',
|
||||||
columnWidth: '.grid-sizer',
|
columnWidth: '.grid-sizer',
|
||||||
//percentPosition: true,
|
|
||||||
gutter: '.gutter-sizer'
|
gutter: '.gutter-sizer'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<a class="no-decoration" href="/art/{{ . }}">
|
<a class="no-decoration" href="/art/{{ . }}">
|
||||||
{{ $thumbp := printf "/year-thumbs/%d.webp" . }}
|
{{ $thumbp := printf "/year-thumbs/%d.webp" . }}
|
||||||
{{ with resources.Get $thumbp }}
|
{{ with resources.Get $thumbp }}
|
||||||
<img width="256" height="128" title="{{ $year }}" alt="{{ $year }}" class="gallery-img article-img" src="{{ .RelPermalink }}">
|
<img style="margin-right: 5px" width="256" height="128" title="{{ $year }}" alt="{{ $year }}" class="gallery-img article-img" src="{{ .RelPermalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue