jekyll-admin icon indicating copy to clipboard operation
jekyll-admin copied to clipboard

Edit drafts

Open DirtyF opened this issue 10 years ago • 11 comments

I'm using the latest version of Jekyll and jekyll-admin on latest OSX / Google Chrome.

Steps to reproduce

  • store a post in _drafts folder
  • set show_drafts: true in_config.yml
  • Display list of posts in jekyll-admin
  • click on a post stored in _drafts folder

Expected

I can edit drafts in jekyll-admin (whether they are stored in a dedcated drafts section or tagged as drafts in the posts section)

Temporary workaround: Don't display drafts amongst posts if they can not be edited 😇

Actual

Page : Could not find document Notification: Could not fetch the doc

If I edit a post and then try to edit a draft, then the last edited post is displayed instead of the draft, but the notification "Could not fetch the doc" is also displayed as shown in the following screenshot:

could-not-fetch-document

DirtyF avatar Aug 25 '16 00:08 DirtyF

I have the same problem in the same environment. Editing drafts doesn't working.

yoksel avatar Nov 10 '16 14:11 yoksel

Related with #150, #163. We need to list directories & files separately for the collection/page APIs to be able to show posts/pages in directories. Same approach with PR #244 that @bekicot is working on.

mertkahyaoglu avatar Jan 05 '17 19:01 mertkahyaoglu

This issue has been automatically marked as stale because it has not been commented on for at least two months.

The resources of the Jekyll team are limited, and so we are asking for your help.

If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.

If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.

This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.

jekyllbot avatar Mar 15 '17 17:03 jekyllbot

+1

iliketoprogram14 avatar Apr 11 '17 09:04 iliketoprogram14

+1 Thank you

Codeandomx avatar Apr 29 '17 21:04 Codeandomx

Hi. This feature sounds great. Is there any way I can help get this across the line?

xow avatar Oct 02 '17 04:10 xow

Hi @xow . We have a PR for this one #367 . You can check it out.

mertkahyaoglu avatar Oct 02 '17 06:10 mertkahyaoglu

This was supposedly fixed, but jekyll-admin 0.11.0 does not show draft posts with Jekyll 4.2.1.

mslinn avatar Feb 04 '22 19:02 mslinn

@mslinn Did you enable drafts in your config file by having top-level defn. show_drafts: true? If yes, please open a new issue ticket with screenshots attached to demonstrate the issue.

ashmaroli avatar Feb 05 '22 05:02 ashmaroli

@ashmaroli The docs on the front page of this project are presumably meant to provide a complete list of options. show_drafts is not mentioned in any documentation that I could find.

I tried setting it, and no drafts were found. My drafts are in collections/_drafts, Perhaps the plugin does not account for how collections can be structured since Jekyll 3.7.0.

mslinn avatar Feb 05 '22 05:02 mslinn

Like I stated in the previous comment, please open a new issue ticket with screenshots attached to demonstrate the issue.

Screenshots should show the config file entry and the drafts panel in the sidebar (irrespective of whether Jekyll detects draft documents. If the sidebar doesn't show the drafts panel, you may have to restart the local server for your config changes to be considered).

ashmaroli avatar Feb 05 '22 05:02 ashmaroli