Move all bergamot partials and shortcodes into theme
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
17
layouts/partials/bergamotparseinputmodes.js
Normal file
17
layouts/partials/bergamotparseinputmodes.js
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
{{ 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 }}
|
||||
}
|
||||
Reference in New Issue
Block a user