Use query parameter separator from config (#25)
* Use query parameter separator from config * Update archives.html.twig Replace hard coded separator with config value
This commit is contained in:
parent
4d60ddd763
commit
09407af482
3 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
<ul class="archives">
|
<ul class="archives">
|
||||||
{% for month,items in archives_data %}
|
{% for month,items in archives_data %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ base_url }}/archives_month:{{ month|date('M_Y')|lower|e('url') }}">
|
<a href="{{ base_url }}/archives_month{{ config.system.param_sep }}{{ month|date('M_Y')|lower|e('url') }}">
|
||||||
<span class="archive_date">{{ month }}</span>
|
<span class="archive_date">{{ month }}</span>
|
||||||
{% if archives_show_count %}
|
{% if archives_show_count %}
|
||||||
<span>({{ items|length }})</span>
|
<span>({{ items|length }})</span>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
input.on('keypress', function(event) {
|
input.on('keypress', function(event) {
|
||||||
if (event.which == 13 && input.val().length > 3) {
|
if (event.which == 13 && input.val().length > 3) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
window.location.href = input.data('search-input') + ':' + input.val();
|
window.location.href = input.data('search-input') + '{{ config.system.param_sep }}' + input.val();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -6,7 +6,7 @@ jQuery(document).ready(function($){
|
||||||
input.on('keypress', function(event) {
|
input.on('keypress', function(event) {
|
||||||
if (event.which == 13 && input.val().length > 3) {
|
if (event.which == 13 && input.val().length > 3) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
window.location.href = input.data('searchsidebar-input') + ':' + input.val();
|
window.location.href = input.data('searchsidebar-input') + '{{ config.system.param_sep }}' + input.val();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue