From d48872a6c65e4ea5a319f806e0d9088129a5fcec Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 14 Jul 2022 20:07:09 +0300 Subject: Fix rendering of empty column items --- build.js | 3 ++- src/index.html.mustache | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.js b/build.js index 0ae5bd6..b5a43b7 100644 --- a/build.js +++ b/build.js @@ -56,7 +56,8 @@ const galleryViews = galleryJsonList }; }); -const renderedHtml = M.render(htmlTemplate, { galleries: galleryViews} ); +const view = { galleries: galleryViews }; +const renderedHtml = M.render(htmlTemplate, view); fs.writeFileSync(HTML_OUT_PATH, renderedHtml); console.log("Done."); \ No newline at end of file diff --git a/src/index.html.mustache b/src/index.html.mustache index 5133c9c..4f51721 100644 --- a/src/index.html.mustache +++ b/src/index.html.mustache @@ -25,11 +25,13 @@ -- cgit v1.3