Move all bergamot partials and shortcodes into theme
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
8
layouts/shortcodes/bergamot_widget.html
Normal file
8
layouts/shortcodes/bergamot_widget.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<div id="{{ .Get "id" }}"></div>
|
||||
<script>
|
||||
window.addEventListener('load', function() {
|
||||
window.Bergamot.run(null, '{{ .Get "id" }}',
|
||||
{{ partial "bergamotparseinputmodes.js" (.Get "modes") | safeJS }},
|
||||
'{{ .Get "prompt" }}', '{{ .Inner }}', '{{ default "default" (.Get "rendering") }}', '{{ .Get "query" }}');
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user