siteleaf / learn.siteleaf.com

Siteleaf Learn is a documentation and learning resource for Siteleaf v2.
http://learn.siteleaf.com
26 stars 25 forks source link

Search #5

Closed sawyerh closed 8 years ago

sskylar commented 8 years ago

Here's the embed code needed for search:

<input type="text" class="st-default-search-input">

<script type="text/javascript">
(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
})(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');

_st('install','WgemsSzpiSJN3aaHTqYn','2.0.0');
</script>

Tip: You can nav content from being index using:

  <p data-swiftype-index='false'>
    Content in this paragraph tag will be excluded from the search index!
  </p>

https://swiftype.com/documentation/content_inclusion_exclusion

You can also use meta tags for more structured indexing: https://swiftype.com/documentation/meta_tags

e.g. https://github.com/siteleaf/siteleaf.com/blob/master/_layouts/default.html#L7

ethnt commented 8 years ago

Closed with #30.