mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-21 16:02:40 +00:00
Fixing Tipue search
This commit is contained in:
parent
a3b1d218ad
commit
ea690c27e9
@ -97,7 +97,7 @@ http://www.tipue.com/search
|
||||
}
|
||||
if (getURLP('q'))
|
||||
{
|
||||
$('.tipue_search')[0].val(getURLP('q'));
|
||||
$('main .tipue_search').val(getURLP('q'));
|
||||
getTipueSearch(0, true);
|
||||
}
|
||||
|
||||
@ -120,7 +120,7 @@ http://www.tipue.com/search
|
||||
var c = 0;
|
||||
found = new Array();
|
||||
|
||||
var d = $('.tipue_search')[0].val().toLowerCase();
|
||||
var d = $('main .tipue_search').val().toLowerCase();
|
||||
d = $.trim(d);
|
||||
|
||||
if ((d.match("^\"") && d.match("\"$")) || (d.match("^'") && d.match("'$")))
|
||||
|
@ -19,7 +19,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<base href="{{ SITEURL }}">
|
||||
<base href="{{ SITEURL }}/">
|
||||
|
||||
<title>{% block title %}{{ SITENAME }}{% endblock %}</title>
|
||||
<meta name="description" content="{% block description %}{{ DESCRIPTION }}{% endblock %}">
|
||||
|
@ -4,9 +4,9 @@
|
||||
{% for item in articles + pages %}
|
||||
{{comma()}}
|
||||
{
|
||||
"title": "{{item.title|striptags|e}}",
|
||||
"text":"{{item.content|striptags|e}}",
|
||||
"tags": "{{item.tags}}",
|
||||
"title": {{item.title|striptags|tojson}},
|
||||
"text": {{item.content|striptags|tojson}},
|
||||
"tags": "{{' '.join(item.tags|map(attribute="name"))}}",
|
||||
"loc": "{{ SITEURL }}/{{item.url}}"
|
||||
}
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user