Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

SPIKE: Figure out a way to have specific pages in Dev Center be no index (both internal & external search) #546

Closed
henryyamamoto-concur opened this issue May 3, 2016 · 5 comments
Assignees
Labels

Comments

@henryyamamoto-concur
Copy link
Contributor

henryyamamoto-concur commented May 3, 2016

Requirements:

  • Pages must be "no index" to external search engines and internal search

Determine if we can do this and how we'd do it.

@henryyamamoto-concur henryyamamoto-concur added this to the Sprint 4/26 - 5/6 milestone May 3, 2016
@meritmalling meritmalling self-assigned this May 5, 2016
@henryyamamoto-concur henryyamamoto-concur modified the milestones: Sprint 5/9 - 5/20, Sprint 4/26 - 5/6 May 12, 2016
@henryyamamoto-concur henryyamamoto-concur changed the title SPIKE: Figure out a way to have hidden pages on Dev Center SPIKE: Figure out a way to have specific pages in Dev Center be no index (both internal & external search) May 19, 2016
@henryyamamoto-concur
Copy link
Contributor Author

@howarddierking FYI. I modified an existing issue to be the tracker for the no index via front matter.

@meritmalling
Copy link
Contributor

Just had a quick look a this, looks like the way to do this is setting a boolean in your front matter then injecting a meta tag in the template based on the truth of that value.

http://jamiecollinson.com/blog/how-to-noindex-pages-with-jekyll

@howarddierking
Copy link
Contributor

@merittrompeter - yup. This is the same pattern that I implemented for having search ignore the preview branch (https://github.com/concur/developer.concur.com/blob/preview/_layouts/default.html#L16). You can probably just add a check to that same conditional for an additional front matter variable.

@henryyamamoto-concur
Copy link
Contributor Author

The markdown files in this folder should be all "no index":
https://github.com/concur/developer.concur.com/tree/preview/api-alpha

@henryyamamoto-concur
Copy link
Contributor Author

Using preview function and it seems to be working with no issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants