diff --git a/content/assets/js/random_vereniging.js b/content/assets/js/random_vereniging.js index 5aed751..99f7bc9 100644 --- a/content/assets/js/random_vereniging.js +++ b/content/assets/js/random_vereniging.js @@ -11,6 +11,6 @@ window.addEventListener('load', function() { let destination = document.getElementById("display_repo"); for (node of selected) { node.getElementsByTagName("img")[0].setAttribute("loading", "eager"); - destination.appendChild(node); + destination.prepend(node); } }); \ No newline at end of file diff --git a/layouts/homepage.erb b/layouts/homepage.erb index c98ca1e..891174d 100644 --- a/layouts/homepage.erb +++ b/layouts/homepage.erb @@ -53,7 +53,7 @@
>
-
logo van <%= item['naam'] %>
+
" alt="logo van <%= item['naam'] %>" height="100">

<%= item['naam'] %>

diff --git a/lib/helpers/verenigingen.rb b/lib/helpers/verenigingen.rb index da4f210..3445c48 100644 --- a/lib/helpers/verenigingen.rb +++ b/lib/helpers/verenigingen.rb @@ -44,7 +44,8 @@ module VerenigingenHelper "themas" => x[:themas], "postcodes" => x[:postcodes].to_a, "id" => x[:id], - "path" => x.path + "path" => x.path, + "image_url" => image_url(x) } }.to_a end