From 77dade1d1dbdd819ce5b7e0d71950c0eda69acf4 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 15 Sep 2024 20:10:04 -0700 Subject: [PATCH] Move all bergamot partials and shortcodes into theme Signed-off-by: Danila Fedorin --- layouts/partials/bergamotparseinputmodes.js | 17 ----------------- layouts/shortcodes/bergamot_exercise.html | 21 --------------------- layouts/shortcodes/bergamot_widget.html | 8 -------- themes/vanilla | 2 +- 4 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 layouts/partials/bergamotparseinputmodes.js delete mode 100644 layouts/shortcodes/bergamot_exercise.html delete mode 100644 layouts/shortcodes/bergamot_widget.html diff --git a/layouts/partials/bergamotparseinputmodes.js b/layouts/partials/bergamotparseinputmodes.js deleted file mode 100644 index b43263e..0000000 --- a/layouts/partials/bergamotparseinputmodes.js +++ /dev/null @@ -1,17 +0,0 @@ -{ -{{ if . }} -{{ range $name := split . ";" }} -{{ if eq $name "query" }} - "Query": "query", -{{ else }} - {{ $pieces := split $name ":" }} - {{ $name := index $pieces 0 }} - {{ $modestring := index $pieces 1 }} - "{{ $name }}": { "custom": "{{ $modestring }}" }, -{{ end }} -{{ end }} -{{ else }} - "Languge Term": { "custom": "Bergamot Object Language" }, - "Query": "query", -{{ end }} -} diff --git a/layouts/shortcodes/bergamot_exercise.html b/layouts/shortcodes/bergamot_exercise.html deleted file mode 100644 index 444406d..0000000 --- a/layouts/shortcodes/bergamot_exercise.html +++ /dev/null @@ -1,21 +0,0 @@ -
-
- - - - {{ if or (eq (.Get "label") "") (eq (.Get "label") nil) }}{{ else }}({{ .Get "label" }}){{ end }}: - - - {{ transform.Markdownify .Inner }} - -
- {{ if or (eq (.Get "preset") "") (eq (.Get "preset") nil) }} - {{ else }} - - - {{ end }} -
- -
-
-
diff --git a/layouts/shortcodes/bergamot_widget.html b/layouts/shortcodes/bergamot_widget.html deleted file mode 100644 index 8d3f2a9..0000000 --- a/layouts/shortcodes/bergamot_widget.html +++ /dev/null @@ -1,8 +0,0 @@ -
- diff --git a/themes/vanilla b/themes/vanilla index 378a6f2..dde3fb6 160000 --- a/themes/vanilla +++ b/themes/vanilla @@ -1 +1 @@ -Subproject commit 378a6f2ae10a0156ff6eee6df4f5078b7e184ac8 +Subproject commit dde3fb61aec70675a84b196dc437cb68783b5550