diff --git a/tools/importer/import.js b/tools/importer/import.js index f40d3b07..26a9e83c 100644 --- a/tools/importer/import.js +++ b/tools/importer/import.js @@ -350,7 +350,14 @@ function cards(main, document) { blockName = 'Video cards'; } - createBlock(container, document, blockName, cells); + const variants = []; + container.classList.forEach((className) => { + if (className.startsWith('cardsPerRow-')) { + variants.push(className.toLowerCase()); + } + }); + + createBlock(container, document, blockName, cells, variants); }); }