adobe / aio-theme

The Adobe I/O theme for building markdown powered sites
Apache License 2.0
72 stars 43 forks source link

Ignore md pages when indexing if noIndex keyword set true #1535

Closed dmitrymatio closed 1 year ago

dmitrymatio commented 1 year ago

Description

Added support for flagging a page as noIndex. Search index operation will ignore pages with noIndex: true in frontmatter. This is a simple feature but important for repos with transcluded pages under src/pages/ where we index all md pages by default. Currently such repos show duplicate results for the transcluded content in local search. The noIndex flag will help with removing these duplicates.

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist: