blog-static/layouts/shortcodes/bergamot_preset.html

11 lines
339 B
HTML
Raw Normal View History

<script>
window.addEventListener('load', function() {
window.Bergamot.presets['{{ .Get "name" }}'] = {
rules: '{{ .Inner }}',
inputPrompt: '{{ .Get "prompt" }}',
query: '{{ .Get "query" }}',
renderPreset: '{{ default "default" (.Get "rendering") }}'
};
});
</script>