When post titles andor image titles change; they are duplicated in Jekyll build. #5
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When post titles and image titles are updated after publishing, we get duplicate posts and images in the Jekyll build.
Solution:
if modified time of the post or product is updated (different from old post)
then remove the old post from collection and recreate the post.
if modified time of the product or post image is updated (different from old image)
then remove the old image from collection and recreate the image.
If an individual renames the title of a collection, that collection is duplicated.
In Ruby & Jekyll env, I need to remove duplicated posts before pulling data from Strapi API.
We could remove all of the posts and products and re-download all of them, but this would waste more bandwidth and time to build the application.
At the moment, I am unsure how long extracting data from 1000 posts orand products would entail..therefore, we only remove duplicated products and posts before pulling in new data.
This should be fixed now; on each creation or build of the site, a new collection of post types are created. In the Docker virtual machine, each build removes all previous cached data.
More testing should be done, but I am 99% sure everything is okay now with this docker machine.