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:
David Raine 2017-04-12 14:06:47 +01:00 committed by Flavio Copes
parent 4d60ddd763
commit 09407af482
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<ul class="archives">
{% for month,items in archives_data %}
<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>
{% if archives_show_count %}
<span>({{ items|length }})</span>

View File

@ -7,7 +7,7 @@
input.on('keypress', function(event) {
if (event.which == 13 && input.val().length > 3) {
event.preventDefault();
window.location.href = input.data('search-input') + ':' + input.val();
window.location.href = input.data('search-input') + '{{ config.system.param_sep }}' + input.val();
}
});
});

View File

@ -6,7 +6,7 @@ jQuery(document).ready(function($){
input.on('keypress', function(event) {
if (event.which == 13 && input.val().length > 3) {
event.preventDefault();
window.location.href = input.data('searchsidebar-input') + ':' + input.val();
window.location.href = input.data('searchsidebar-input') + '{{ config.system.param_sep }}' + input.val();
}
});
});