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

Admin saving to _posts in root instead of custom collection folder collections_dir #703

Open
ADTC opened this issue May 14, 2023 · 0 comments

Comments

@ADTC
Copy link

ADTC commented May 14, 2023

Description:

When editing posts which have been moved to the custom collections directory, as defined by collections_dir in _config.yml Admin deletes the file in the custom_collection_dir/_posts folder and creates it in the _posts folder (in root).

Tell us a bit about yourself:

  • jekyll (4.3.2)
  • jekyll-admin (0.11.1)
  • Node v20.1.0
  • macOS Ventura M1
  • Firefox latest

Steps to reproduce:

  1. Add the configuration to _config.yml for custom collection folder.
  2. As per instruction, move the _posts folder in custom collection directory.
  3. Reload bundle exec jekyll serve
  4. Open admin and make any change in a post. Save the changes.
  5. Check the result in the file structure (done best if you have a Git repo tracking changes).

I expected the following:

Changes should be saved to the custom collection directory.

But got the following, instead:

Changes saved to a new file (in a subfolder) in root directory, with the file in custom collection directory deleted.

Other details:

Related: #449

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

1 participant