-
Notifications
You must be signed in to change notification settings - Fork 95
Migrating images
Niki Hansche edited this page Jun 21, 2020
·
3 revisions
I would like to contribute how I migrated a blog from self-hosted wordpress to Hugo on S3.
-
Used the plugin version 1.6 to get the zip file
-
extracted the zip file in a temp folder
-
copied the
posts
directorycp -r posts hugo-project/content
-
copied the
wp-content
directorycp -r wp-content hugo-project/static
-
Change the URLs from old domain name to new domain name
find hugo-project/content -type f -print0 | xargs -0 sed -i -e 's/example.com/example.org/g'
-
Allow inline-html in
config.toml
[markup] [markup.goldmark] [markup.goldmark.renderer] unsafe = true
-
Sync up to S3 with s3cmd
s3cmd sync --recursive --delete-removed --acl-public hugo-project/public s3://mybucket.example.com