Sha256: 348ea9be33caf3a12b3a0dc1fd5dc3820aa8b564824354d6d3b65dc7cb4a84c0
Contents?: true
Size: 1.33 KB
Versions: 4
Compression:
Stored size: 1.33 KB
Contents
--- layout: null sitemap: false --- var store = [ {%- for c in site.collections -%} {%- if forloop.last -%} {%- assign l = true -%} {%- endif -%} {%- assign docs = c.docs | where_exp: 'doc', 'doc.search != false' -%} {%- for doc in docs -%} { "title": {{ doc.title | jsonify }}, "excerpt": {%- if site.search_full_content == true -%} {{ doc.content | replace:"</p>", " " | replace:"</h1>", " " | replace:"</h2>", " " | replace:"</h3>", " " | replace:"</h4>", " " | replace:"</h5>", " " | replace:"</h6>", " "| strip_html | strip_newlines | jsonify }}, {%- else -%} {{ doc.content | replace:"</p>", " " | replace:"</h1>", " " | replace:"</h2>", " " | replace:"</h3>", " " | replace:"</h4>", " " | replace:"</h5>", " " | replace:"</h6>", " "| strip_html | strip_newlines | truncatewords: 50 | jsonify }}, {%- endif -%} "categories": {{ doc.categories | jsonify }}, "tags": {{ doc.tags | jsonify }}, "url": {{ doc.url | absolute_url | jsonify }} } {%- unless forloop.last and l -%}, {%- endunless -%} {%- endfor -%} {%- endfor -%} ]
Version data entries
4 entries across 4 versions & 1 rubygems