jekyll / jekyll-admin

A Jekyll plugin that provides users with a traditional CMS-style graphical interface to author content and administer Jekyll sites.
https://jekyll.github.io/jekyll-admin/
MIT License
2.82k stars 357 forks source link

Add force show drafts configuration option #693

Open rpeyron opened 1 year ago

rpeyron commented 1 year ago

force_show_drafts

On some cases you want to use multiple config files or --drafts command line switch that won't be properly detected by jekyll-admin. This flag can force jekyll-admin to display the draft section in the sidebar even if show_draft: true hasn't been detected in the config file.

It will only force display, not enable drafts. So be sure to have enabled drafts on jekyll.

jekyll_admin:
  force_show_drafts: true