-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.json
42 lines (34 loc) · 1.26 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
---
layout: none
---
[
{% for page in site.pages %}
{% if page.type == null %}
{} {% unless forloop.last %},{% endunless %}
{% elsif page.type == "nav" %}
{} {% unless forloop.last %},{% endunless %}
{% elsif page.type == "white-paper OR tutorial" %}
{} {% unless forloop.last %},{% endunless %}
{% else %}
{% assign author_names = '' | split: '' %}
{% for author in page.authors %}
{% assign author_name = author[1].name | split: ", " %}
{% assign author_names = author_names | concat: author_name %}
{% endfor %}
{
"title" : "{{ page.title | escape }}",
"authors" : "{{ author_names | join: ', ' }}",
"tags" : "{{ page.tags | join: ', ' }}",
"doi" : "{{ page.doi }}",
"submit-date" : "{{ page.submit-date }}",
"publish-date" : "{{ page.publish-date }}",
"peer-review-date" : "{{ page.peer-review-date }}",
"update-date" : "{{ page.update-date }}",
"url" : "{{ site.baseurl }}{{ page.url }}",
"type" : "{{ page.type }}",
"summary" : "{{ page.summary }}",
"content" : "{{ page.content | markdownify | strip_html | strip_newlines | strip | escape }}"
} {% unless forloop.last %},{% endunless %}
{% endif %}
{% endfor %}
]