Skip to content

Files

Latest commit

1493db8 · Feb 19, 2018

History

History
29 lines (24 loc) · 833 Bytes

2017-11-28-post-exclude-search.md

File metadata and controls

29 lines (24 loc) · 833 Bytes
title search categories last_modified_at
Exclude Post from Search Index
false
Jekyll
2018-02-19 08:06:00 -0500

This post should not appear in the search index because it has the following YAML Front Matter:

search: false

Note: search: false only works to exclude posts when using Lunr as a search provider. {: .notice--info}

To exclude files when using Algolia as a search provider add an array to algolia.files_to_exclude in your _config.yml. For more configuration options be sure to check their full documentation.

algolia:
  # Exclude more files from indexing
  files_to_exclude:
    - index.html
    - index.md
    - excluded-file.html
    - _posts/2017-11-28-post-exclude-search.md
    - subdirectory/*.html