jekyll / jekyll-redirect-from

:twisted_rightwards_arrows: Seamlessly specify multiple redirections URLs for your pages and posts.
MIT License
780 stars 112 forks source link

Allows generation of redirects.json to be disabled #207

Closed dmalan closed 4 years ago

dmalan commented 4 years ago

Per https://github.com/jekyll/jekyll-redirect-from/issues/189, it's not always desirable to generate redirects.json, particularly since it might leak information about routes that exist but that aren't actually (intended to be) linked publicly.

This PR proposes to add support for

redirect_from:
  json: false

modeled after https://github.com/benbalter/jekyll-optional-front-matter#configuration.

dmalan commented 4 years ago

Changes made!

dmalan commented 4 years ago

Thanks!

DirtyF commented 4 years ago

@jekyllbot: merge +minor