Load presets from front matter + allow both bundled and global bergamot files

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
2024-09-15 16:18:48 -07:00
parent dee7579b29
commit 3a281dfa8a
3 changed files with 11 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
<script>
window.addEventListener('load', function() {
window.Bergamot.renderPresets['{{ .name }}'] =
{{ readFile (printf "static/bergamot/rendering/%s" .file) }};
{{ .file }};
});
</script>