Admin pages duplicated
Description:
Hi there,
Weird bug: we use Jekyll admin in production. A few days ago, our client went to the admin and found the pages duplicates (cf screenshot). When we restart the server, the bug disappears. Any idea of the reason?
Thanks a ton in advance !

Versions
- Version of JekyllAdmin I'm using : 0.11.0
- Version of Jekyll I'm using : 3.8.5
Hi @damienlethiec!
Could you reproduce the issue again or was it a one time thing?
I'm also experiencing this.
Jekyll Admin: 0.11.0 Jekyll: 4.1.0
Edit: It seems to be when I edit my config from admin page.
I managed to trace the error back to https://github.com/jekyll/jekyll-admin/blob/1e8766166c74f013979536575b1e9ceddbb86be6/lib/jekyll-admin/file_helper.rb#L27
It looks like site.read might be causing the entire site (assets, html pages, etc) to be duplicated. This seems like a server side issue. I'm going to take a crack at fixing this bug.
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.
https://github.com/jekyll/jekyll-admin/pull/629 addresses this issue.