Compare commits
2 Commits
209689c5f4
...
5041c90ac0
Author | SHA1 | Date | |
---|---|---|---|
5041c90ac0 | |||
2855675fa5 |
|
@ -31,3 +31,7 @@ defaultContentLanguage = 'en'
|
||||||
[languages.en]
|
[languages.en]
|
||||||
title = "Daniel's Blog"
|
title = "Daniel's Blog"
|
||||||
languageCode = "en-us"
|
languageCode = "en-us"
|
||||||
|
|
||||||
|
[params]
|
||||||
|
bergamotJsUrl = "https://static.danilafe.com/bergamot/bergamot.js"
|
||||||
|
katexExpressionJsUrl = "https://static.danilafe.com/katex-expression/katex-expression.esm.js"
|
||||||
|
|
3
layouts/shortcodes/bergamot_js_css.html
Normal file
3
layouts/shortcodes/bergamot_js_css.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<script src="{{ .Site.Params.bergamotJsUrl }}"></script>
|
||||||
|
{{ $style := resources.Get "scss/bergamot.scss" | resources.ToCSS | resources.Minify }}
|
||||||
|
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
7
layouts/shortcodes/bergamot_widget.html
Normal file
7
layouts/shortcodes/bergamot_widget.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<div id="{{ .Get "id" }}"></div>
|
||||||
|
<script>
|
||||||
|
var app = Elm.Main.init({
|
||||||
|
node: document.getElementById('{{ .Get "id" }}'),
|
||||||
|
flags: { rules: '{{- strings.Trim .Inner " \n" -}}', query: '{{ .Get "query" }}' }
|
||||||
|
});
|
||||||
|
</script>
|
1
layouts/shortcodes/katex_component_js.html
Normal file
1
layouts/shortcodes/katex_component_js.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<script type="module" src="{{ .Site.Params.katexExpressionJsUrl }}"></script>
|
|
@ -1 +1 @@
|
||||||
Subproject commit 5aa54c1ce47992b78630113c7b25f1c19edf3884
|
Subproject commit 098767e76632c1a82efd7eec21fc710165ffbee2
|
Loading…
Reference in New Issue
Block a user