Skip to content
Snippets Groups Projects
Commit 96653f6d authored by Silvio Giebl's avatar Silvio Giebl
Browse files

Simplified search-data.json

parent 94956403
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ function initSearch() { ...@@ -52,7 +52,7 @@ function initSearch() {
for (var i in data) { for (var i in data) {
this.add({ this.add({
id: data[i].id, id: i,
title: data[i].title, title: data[i].title,
content: data[i].content, content: data[i].content,
url: data[i].url url: data[i].url
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
--- ---
{ {
{% for page in site.html_pages %}{% if page.search_exclude != true %}"{{ forloop.index0 }}": { {% for page in site.html_pages %}{% if page.search_exclude != true %}"{{ forloop.index0 }}": {
"id": "{{ forloop.index0 }}",
"title": "{{ page.title | replace: '&', '&' }}", "title": "{{ page.title | replace: '&', '&' }}",
"content": "{{ page.content | markdownify | replace: '</h', ' . </h' | replace: '<hr', ' . <hr' | replace: '</p', ' . </p' | replace: '</ul', ' . </ul' | replace: '</tr', ' . </tr' | replace: '</li', ' | </li' | replace: '</td', ' | </td' | strip_html | escape_once | remove: 'Table of contents' | remove: '```' | remove: '---' | replace: '\', ' ' | replace: ' . . . ', ' . ' | replace: ' . . ', ' . ' | normalize_whitespace }}", "content": "{{ page.content | markdownify | replace: '</h', ' . </h' | replace: '<hr', ' . <hr' | replace: '</p', ' . </p' | replace: '</ul', ' . </ul' | replace: '</tr', ' . </tr' | replace: '</li', ' | </li' | replace: '</td', ' | </td' | strip_html | escape_once | remove: 'Table of contents' | remove: '```' | remove: '---' | replace: '\', ' ' | replace: ' . . . ', ' . ' | replace: ' . . ', ' . ' | normalize_whitespace }}",
"url": "{{ page.url | absolute_url }}", "url": "{{ page.url | absolute_url }}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment