forked from LineageOS/lineage_wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.json
28 lines (26 loc) · 919 Bytes
/
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
---
title: search
layout: none
search: exclude
---
[
{%- for page in site.pages %}
{%- unless page.search == "exclude" or page.url contains "_info.html" or page.url contains "_install.html" or page.url contains "_build.html" or page.url contains "devices.html" or page.url contains ".css" %}
{%- unless page.url contains "/devices" and page.url contains "/build" or page.url contains "/devices" and page.url contains "/install" %}
{
{%- if page.url contains "/devices" %}
{%- assign device = site.data.devices[page.device] %}
"title": "{{ device.codename | escape }} - {{ device.vendor | escape }} {{ device.name }}",
{% else -%}
"title": "{{ page.title | escape }}",
{% endif -%}
"tags": "{{ page.tags }}",
"keywords": "{{page.keywords}}",
"url": "{{ page.url | relative_url }}",
"summary": "{{page.summary | strip }}"
}
{%- if forloop.last == false %}, {% endif %}
{%- endunless %}
{%- endunless %}
{%- endfor %}
]