Simplified search-data.json

This commit is contained in:
Silvio Giebl 2019-05-19 20:08:31 +02:00
parent 9495640378
commit 96653f6d36
2 changed files with 1 additions and 2 deletions

View File

@ -52,7 +52,7 @@ function initSearch() {
for (var i in data) {
this.add({
id: data[i].id,
id: i,
title: data[i].title,
content: data[i].content,
url: data[i].url

View File

@ -2,7 +2,6 @@
---
{
{% for page in site.html_pages %}{% if page.search_exclude != true %}"{{ forloop.index0 }}": {
"id": "{{ forloop.index0 }}",
"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 }}",
"url": "{{ page.url | absolute_url }}",