@@ -49,12 +49,7 @@ <h1 class="page-header__heading">mrbgems</h1>
4949< section class ="libs-grid ">
5050 < div class ="libs-grid__inner ">
5151 < div class ="libs-grid__rows " id ="libs-grid ">
52- {% assign gems = site.data.mgems %}
53- {% assign row_size = 3 %}
54- {% assign row_index = 0 %}
55- {% for mgem in gems %}
56- {% assign mod = row_index | modulo: row_size %}
57- {% if mod == 0 %}< div class ="libs-row "> {% endif %}
52+ {% for mgem in site.data.mgems %}
5853 {% if mgem.author.first %}{% assign mgem_author = mgem.author | join: ", " %}{% else %}{% assign mgem_author = mgem.author %}{% endif %}
5954 < a
6055 href ="{{ mgem.website }} "
@@ -69,9 +64,6 @@ <h1 class="page-header__heading">mrbgems</h1>
6964 </ div >
7065 < p class ="libs-card__description "> {{ mgem.description | xml_escape }}</ p >
7166 </ a >
72- {% assign row_index = row_index | plus: 1 %}
73- {% assign mod_end = row_index | modulo: row_size %}
74- {% if mod_end == 0 or forloop.last %}</ div > {% endif %}
7567 {% endfor %}
7668 </ div >
7769 < div class ="libs-no-results " id ="libs-no-results " aria-live ="polite ">
@@ -116,17 +108,6 @@ <h1 class="page-header__heading">mrbgems</h1>
116108 }
117109 } ) ;
118110
119- document . querySelectorAll ( '.libs-row' ) . forEach ( function ( row ) {
120- var hasVisible = Array . from ( row . querySelectorAll ( '.libs-card' ) ) . some ( function ( c ) {
121- return ! c . hasAttribute ( 'hidden' ) ;
122- } ) ;
123- if ( hasVisible ) {
124- row . removeAttribute ( 'hidden' ) ;
125- } else {
126- row . setAttribute ( 'hidden' , '' ) ;
127- }
128- } ) ;
129-
130111 if ( q ) {
131112 countLabel . textContent = 'Showing ' + visible + ' of ' + total + ' libraries' ;
132113 footerCount . textContent = 'Showing ' + visible + ' of ' + total + ' libraries \u2014' ;
0 commit comments