When post titles andor image titles change; they are duplicated in Jekyll build. #5

Closed
opened 2022-09-21 13:56:01 -04:00 by sharpetronics · 2 comments

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.

image

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. ![image](/attachments/8ece5c4d-19db-410e-8d86-edd896076cee)
sharpetronics self-assigned this 2022-09-21 13:56:01 -04:00
Author
Owner

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.

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.

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.
Sign in to join this conversation.
No Label
No Milestone
No project
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sharpetronics/sharpetronics.com#5
No description provided.