Removed the line number of the snippet in the search results.
This commit is contained in:
parent
b0a35de9c6
commit
edeb08aa28
1 changed files with 2 additions and 2 deletions
|
@ -10,9 +10,9 @@ layout: compress
|
||||||
"categories": "{{ post.categories | join: ', '}}",
|
"categories": "{{ post.categories | join: ', '}}",
|
||||||
"tags": "{{ post.tags | join: ', ' }}",
|
"tags": "{{ post.tags | join: ', ' }}",
|
||||||
"date": "{{ post.date }}",
|
"date": "{{ post.date }}",
|
||||||
{% assign content = post.content %}
|
{% assign _content = post.content %}
|
||||||
{% include no-linenos.html %}
|
{% include no-linenos.html %}
|
||||||
"snippet": "{{ content | strip_html | strip_newlines | remove_chars | escape | truncate: 300 | replace: '\', '\\\\' }}"
|
"snippet": "{{ _content | strip_html | strip_newlines | remove_chars | escape | truncate: 300 | replace: '\', '\\\\' }}"
|
||||||
}{% unless forloop.last %},{% endunless %}
|
}{% unless forloop.last %},{% endunless %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue