forked from BitcoinDesign/Guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch-data.json
More file actions
23 lines (22 loc) · 766 Bytes
/
search-data.json
File metadata and controls
23 lines (22 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
layout: null
---
{
{%- assign content_pages = site.html_pages -%}
{%- assign content = site.posts | concat: content_pages -%}
{% assign counter = 0 %}
{% for page in content %}
{% assign titleLength = page.title.size %}
{% if titleLength > 3 and page.exclude_from_search != true %}
{% if counter > 0 %},{% endif %}
"{{ page.url }}": {
"title": "{{ page.title | xml_escape }}",
"author": "{{ page.author | xml_escape }}",
"category": "{{ page.category | xml_escape }}",
"content": {{ page.content | markdownify | strip_html | strip_newlines | jsonify }},
"url": "{{ page.url | relative_url | xml_escape }}"
}
{% assign counter = counter | plus:1 %}
{% endif %}
{% endfor %}
}