-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.json
More file actions
35 lines (33 loc) · 700 Bytes
/
search.json
File metadata and controls
35 lines (33 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
title: search
layout: none
search: exclude
---
//[
//{% for page in site.pages %}
//{% unless page.search == "exclude" %}
//{
//"title": "{{ page.title | escape }}",
//"tags": "{{ page.tags }}",
//"keywords": "{{page.keywords}}",
//"url": "{{ page.url | prepend: '..' }}",
//"summary": "{{page.summary}}"
//},
//{% endunless %}
//
//{% endfor %}
//null
//]
{
{% for post in site.pages %}
{% unless page.search == "exclude" %}
"{{ post.url | slugify }}": {
"title": "{{ post.title | xml_escape }}",
"url": " {{ post.url | xml_escape | prepend: '..'}}",
"summary": {{post.summary}},
"tags": "{{ post.tags | xml_escape }}"
}
{% endunless %}
{% unless forloop.last %},{% endunless %}
{% endfor %}
}