jekyll / jekyll-import

:inbox_tray: The "jekyll import" command for importing from various blogs to Jekyll format.
https://import.jekyllrb.com
MIT License
513 stars 314 forks source link

WordpressDotCom importer overwrites assets #435

Closed DavidBurela closed 4 years ago

DavidBurela commented 4 years ago

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

DavidBurela commented 4 years ago

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"