Skip to content

Latest commit

 

History

History
53 lines (49 loc) · 1.79 KB

search.md

File metadata and controls

53 lines (49 loc) · 1.79 KB
title layout permalink excerpt dependencies scripts
Search
page
/search/
Find what you are looking for at Musser Scout Reservation. We are bound to have it.
src integrity
sha256-M/Awbb/BYh+Rh0aGjpQid26p1b2OBsrk2k9yAvQxPV0=
src
assets/custom/js/search.js
Search

{% assign searchable_pages = site.pages | where_exp: "page", "page.layout == 'page' or page.layout == 'portal'" %}

<script> window.store = { {% for page in searchable_pages %} "{{ page.url | slugify }}": { "title": "{{ page.title | xml_escape }}", "author": "", "date": "{{ page.date | date: "%B %d, %Y" }}", "category": "{{ page.category | xml_escape }}", "content": {{ page.content | strip_html | strip_newlines | jsonify }}, "url": "{{ page.url | xml_escape }}" }, {%- endfor -%} {% for post in site.posts %} "{{ post.url | slugify }}": { "title": "{{ post.title | xml_escape }}", "author": "{{ post.author | xml_escape }}", "date": "{{ post.date | date: "%B %d, %Y" }}", "category": "{{ post.category | xml_escape }}", "content": {{ post.content | strip_html | strip_newlines | jsonify }}, "url": "{{ post.url | xml_escape }}" } {% unless forloop.last %},{% endunless %} {%- endfor -%} }; </script>