diff --git a/themes/learn2-dark/templates/partials/tntsearch.html.twig b/themes/learn2-dark/templates/partials/tntsearch.html.twig new file mode 100644 index 0000000..77353e2 --- /dev/null +++ b/themes/learn2-dark/templates/partials/tntsearch.html.twig @@ -0,0 +1,30 @@ +{% set url = url|default(base_url|rtrim('/') ~ '/' ~ config.get('plugins.tntsearch.query_route', 's')|trim('/')) %} +{% set limit = limit|default(config.get('plugins.tntsearch.limit', 20)) %} +{% set snippet = snippet|default(config.get('plugins.tntsearch.snippet', 300)) %} +{% set min = min|default(config.get('plugins.tntsearch.min', 3)) %} +{% set search_type = search_type|default(config.get('plugins.tntsearch.search_type', 'auto')) %} +{% set placeholder = placeholder|default('Search...') %} +{% set live_update = in_page ? live_update|default(config.get('plugins.tntsearch.live_uri_update', 1)) : 0 %} +{% set nojs_action = config.get('plugins.tntsearch.search_route', '/search')|trim('/') %} + +{% set options = { uri: url, limit: limit, snippet: snippet, min: min, in_page: in_page, live_update: live_update, search_type: search_type } %} + +
\ No newline at end of file