Fixing Tipue search

This commit is contained in:
Lucas Cimon 2017-08-15 15:16:30 +02:00
parent a3b1d218ad
commit ea690c27e9
3 changed files with 6 additions and 6 deletions

View File

@ -97,7 +97,7 @@ http://www.tipue.com/search
} }
if (getURLP('q')) if (getURLP('q'))
{ {
$('.tipue_search')[0].val(getURLP('q')); $('main .tipue_search').val(getURLP('q'));
getTipueSearch(0, true); getTipueSearch(0, true);
} }
@ -120,7 +120,7 @@ http://www.tipue.com/search
var c = 0; var c = 0;
found = new Array(); found = new Array();
var d = $('.tipue_search')[0].val().toLowerCase(); var d = $('main .tipue_search').val().toLowerCase();
d = $.trim(d); d = $.trim(d);
if ((d.match("^\"") && d.match("\"$")) || (d.match("^'") && d.match("'$"))) if ((d.match("^\"") && d.match("\"$")) || (d.match("^'") && d.match("'$")))

View File

@ -19,7 +19,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<base href="{{ SITEURL }}"> <base href="{{ SITEURL }}/">
<title>{% block title %}{{ SITENAME }}{% endblock %}</title> <title>{% block title %}{{ SITENAME }}{% endblock %}</title>
<meta name="description" content="{% block description %}{{ DESCRIPTION }}{% endblock %}"> <meta name="description" content="{% block description %}{{ DESCRIPTION }}{% endblock %}">

View File

@ -4,9 +4,9 @@
{% for item in articles + pages %} {% for item in articles + pages %}
{{comma()}} {{comma()}}
{ {
"title": "{{item.title|striptags|e}}", "title": {{item.title|striptags|tojson}},
"text":"{{item.content|striptags|e}}", "text": {{item.content|striptags|tojson}},
"tags": "{{item.tags}}", "tags": "{{' '.join(item.tags|map(attribute="name"))}}",
"loc": "{{ SITEURL }}/{{item.url}}" "loc": "{{ SITEURL }}/{{item.url}}"
} }
{% endfor %} {% endfor %}