Skip to content

Commit 5ceac87

Browse files
committed
Removed the line number of the snippet in the search results.
1 parent 4b92aad commit 5ceac87

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

assets/js/data/search.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ layout: compress
1010
"categories": "{{ post.categories | join: ', '}}",
1111
"tags": "{{ post.tags | join: ', ' }}",
1212
"date": "{{ post.date }}",
13-
{% assign content = post.content %}
13+
{% assign _content = post.content %}
1414
{% include no-linenos.html %}
15-
"snippet": "{{ content | strip_html | strip_newlines | remove_chars | escape | truncate: 300 | replace: '\', '\\\\' }}"
15+
"snippet": "{{ _content | strip_html | strip_newlines | remove_chars | escape | truncate: 300 | replace: '\', '\\\\' }}"
1616
}{% unless forloop.last %},{% endunless %}
1717
{% endfor %}
1818
]

0 commit comments

Comments
 (0)