diff --git a/themes/red/assets/css/site.css b/themes/red/assets/css/site.css index 3a9b753..578c5f5 100644 --- a/themes/red/assets/css/site.css +++ b/themes/red/assets/css/site.css @@ -684,3 +684,7 @@ model-viewer { .character span { display: block; } + +.gallery-type-icon-hidden { + visibility: hidden; +} diff --git a/themes/red/assets/js/gallery.js b/themes/red/assets/js/gallery.js index a179946..c5cfdde 100644 --- a/themes/red/assets/js/gallery.js +++ b/themes/red/assets/js/gallery.js @@ -1,4 +1,10 @@ imagesLoaded(document.querySelector('.grid'), function(instance) { + var typeIcons = document.getElementsByClassName('gallery-type-icon-hidden'); + + for(var i = 0; i < typeIcons.length; i++) { + typeIcons[i].classList.remove("gallery-type-icon-hidden"); + } + new Masonry('.grid', { itemSelector: '.grid-item', columnWidth: '.grid-sizer', diff --git a/themes/red/layouts/partials/render-art.html b/themes/red/layouts/partials/render-art.html index d6c77be..8fcb77e 100644 --- a/themes/red/layouts/partials/render-art.html +++ b/themes/red/layouts/partials/render-art.html @@ -11,19 +11,19 @@ {{ with $full }} {{ if $.Params.threed }} {{ with resources.Get "3d.png" }} - 3D cube icon + 3D cube icon {{ end }} {{ end }} {{ if $.Params.comic }} {{ with resources.Get "comic.png" }} - Comic icon + Comic icon {{ end }} {{ end }} {{ if $.Params.animation }} {{ with resources.Get "play-circle.png" }} - Play animation icon + Play animation icon {{ end }} {{ end }}