jekyll/jekyll-import

WordpressDotCom importer overwrites assets

DavidBurela opened this issue · 1 comments

I tried importing my WordpressDotCom website into Jekyll, but I had 350 images get lost/overwritten. This was due to the authoring tool I was using naming all images: image1, image2, image3.
e.g.

/2020
  /01
    image1.jpg
    image2.jpg
    image3.jpg
  /02
    image1.jpg
    image2.jpg
    image3.jpg

but the WordpressDotCom importer, puts all images into /assets which results in them overwriting each other.

I see that there is a similar issue from 6 years ago that went stale #173

I created a PR to address it. I ran it successfully on my wordpress blog with 230 posts. #436
It dramatically reduced clashes.

However as I mentioned in the PR, I have never coded in Ruby before. I did it in a minimal way, but there may be a "cleaner way"