diff options
| -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>
|
