-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.json
47 lines (47 loc) · 1.69 KB
/
search.json
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
36
37
38
39
40
41
42
43
44
45
46
47
---
layout: null
sitemap:
exclude: 'yes'
---
[
{% for post in site.posts %}
{% capture posttitle %}{{post.title}}{% endcapture %}
{
"title": "{{ posttitle | escape}}",
"url": "{{ site.baseurl }}{{ post.url }}"
} {% unless forloop.last %}, {% endunless %}
{% endfor %}
{% if site.pages.size > 0 %}, {% endif %}
{% for page in site.pages %}
{% if page.layout == 'page' %}
{% capture pagetitle %}{{page.title}}{% endcapture %}
{
"title": "{{ pagetitle | escape}}",
"url": "{{ site.baseurl }}{{ page.url }}"
} {% unless forloop.last %}, {% endunless %}
{% endif %}
{% endfor %}
{% for repoPage in site.subclubs %}
{% capture pagetitle %}{{repoPage.title}}{% endcapture %}
{
"title": "{{ pagetitle | escape}}",
"url": "{{ site.baseurl }}{{ repoPage.url }}"
} {% unless forloop.last %}, {% endunless %}
{% endfor %}
{% if site.events.size > 0 %}, {% endif %}
{% for eventPage in site.events %}
{% capture pagetitle %}{{eventPage.title}}{% endcapture %}
{
"title": "{{ pagetitle | escape}}",
"url": "{{ site.baseurl }}{{ eventPage.url }}"
} {% unless forloop.last %}, {% endunless %}
{% endfor %}
{% if site.constitution.size > 0 %}, {% endif %}
{% for constitutionPage in site.constitution %}
{% capture pagetitle %}{{constitutionPage.title}}{% endcapture %}
{
"title": "{{ pagetitle | escape}}",
"url": "{{ site.baseurl }}{{ constitutionPage.url }}"
} {% unless forloop.last %}, {% endunless %}
{% endfor %}
]