Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't enable draft option in jekyll admin sidebar #600

Closed
Grifo89 opened this issue Jul 19, 2020 · 7 comments
Closed

I can't enable draft option in jekyll admin sidebar #600

Grifo89 opened this issue Jul 19, 2020 · 7 comments

Comments

@Grifo89
Copy link

Grifo89 commented Jul 19, 2020

I'm trying to figured out how to add draft option in the sidebar but I can't find how. I appreciate the help.

@ashmaroli
Copy link
Member

It should render automatically if there are drafts in the site.
Have you enabled drafts for the Jekyll site? Either via config file or via the terminal:

bundle exec jekyll serve --drafts

@Grifo89
Copy link
Author

Grifo89 commented Jul 19, 2020

Yes, it works! Thank you!! @ashmaroli

@Grifo89 Grifo89 closed this as completed Jul 19, 2020
@vcavallo
Copy link

This isn't working for me. i'm runnning jekyll serve with --drafts (and I do see the items in _drafts on the served site) but the /admin interface doesn't show drafts anywhere. Furthermore, I have this in my _config.yml:

jekyll_admin:
  show_drafts: true
  homepage: "posts"

For what it's worth, the homepage isn't rendering "posts" but the default "pages", and the "Error could not fetch the config" message still appears (but the "configuration" item in the sidebar does show my current _config.yml

@vcavallo
Copy link

Okay, fixed it. I needed to have show_drafts: true in my top level config:

show_drafts: true
jekyll_admin:
  # hidden_links:
  #   - pages
  #   - staticfiles
  #   - datafiles
  #   - configuration
  homepage: "posts"

@vcavallo
Copy link

Problem with that is the drafts show up on the live site...

@chr0nikler
Copy link

+1 just had this issue, looks like --drafts option locally is no longer applying the same logic as the show_drafts config, which affects live site.

@chr0nikler
Copy link

Opened #714

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

No branches or pull requests

4 participants