diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2022-07-14 20:07:09 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2022-07-14 20:07:09 +0300 |
| commit | d48872a6c65e4ea5a319f806e0d9088129a5fcec (patch) | |
| tree | 53924899f08fcc2bfd0404ad1cd9f773b01f5d6a | |
| parent | 081c7408428d20d91f13f1363735359424e540ee (diff) | |
Fix rendering of empty column items
| -rw-r--r-- | build.js | 3 | ||||
| -rw-r--r-- | src/index.html.mustache | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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 @@ -26,10 +26,12 @@ {{#columns}}
<div class="column">
{{#.}}
+ {{#.}}
<a target="_blank" href="{{&src_hiq}}">
<img src="{{&src_thumbnail}}" alt="{{title}}">
</a>
{{/.}}
+ {{/.}}
</div>
{{/columns}}
</div>
|
