{"id":19808490,"url":"https://github.com/omajid/wordpress2hugo","last_synced_at":"2026-05-05T10:34:26.418Z","repository":{"id":136724218,"uuid":"264776991","full_name":"omajid/wordpress2hugo","owner":"omajid","description":"Migrate from WordPress to Hugo","archived":false,"fork":false,"pushed_at":"2020-07-08T22:20:27.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-11T06:33:40.620Z","etag":null,"topics":["hugo","wordpress"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omajid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-17T23:36:08.000Z","updated_at":"2020-05-18T23:43:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"e74b4d5f-88e0-4ec0-b985-55c7aab676ac","html_url":"https://github.com/omajid/wordpress2hugo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omajid%2Fwordpress2hugo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omajid%2Fwordpress2hugo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omajid%2Fwordpress2hugo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omajid%2Fwordpress2hugo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omajid","download_url":"https://codeload.github.com/omajid/wordpress2hugo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241151836,"owners_count":19918555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hugo","wordpress"],"created_at":"2024-11-12T09:14:01.175Z","updated_at":"2026-05-05T10:34:26.388Z","avatar_url":"https://github.com/omajid.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `wordpress2hugo` - Migrate from WordPress to Hugo\n\nHome page: https://github.com/omajid/wordpress2hugo\n\nWith `wordpress2hugo` you can migrate a blog from\n[WordPress](https://wordpress.com/) (either WordPress.com or\nself-hosted) to [hugo](https://gohugo.io/)!\n\nAll you need is the exported `.xml` file from a wordpress site. In\nWordPress, use `Tools` -\u003e `Export` -\u003e `Export All` and then download\nthe generated `.xml` file.\n\nWe have only tested this on personal blogs. It's probably not going to\nwork well with highly customized visually-designed WordPress pages.\n\nIf you run into any issues, please report them on github:\nhttps://github.com/omajid/wordpress2hugo/issues/new\n\n## Usage\n\nYou can use the `.xml` export of your wordpress site to convert it to\nhugo.\n\nBefore running, you need to install some dependencies:\n\n- [Python 3.x](https://www.python.org/)\n- [Pipenv](https://pipenv.pypa.io/en/latest/)\n- [Git](https://git-scm.com/downloads)\n\nHere's how to get the code and set it up:\n\n``` shell\ngit clone https://github.com/omajid/wordpress2hugo\ncd wordpress2hugo\npipenv install\n```\n\nYou can then run this code through `pipenv run`:\n\n```shell\npipenv run python3 wordpress2hugo --help\npipenv run python3 wordpress2hugo name-of-wordpress.xml\n```\n\nYou should see a directory named as the WordPress site, such as\n`foo.wordpress.com`. That contains the hugo version of the original\nsite.\n\nIf you want to modify the code, use a different `pipenv` command than\nthe above to install the development-specific dependencies too:\n\n``` shell\npipenv install --dev\n```\n\n## Features\n\n- All original URLs are preserved as aliases\n- Written in Python 3\n\n## Future Improvements\n\nHere's a collection of ideas for some future improvements. Pull\nRequests for these are highly welcome!\n\n- Organize posts by year\n- Configure and use migration policies - let users select the on-disk\n  layout of the migrated website.\n- Export images from the original WordPress site\n- Add unit Tests\n- Modularize the code further\n\n## License\n\n`wordpress2hugo` is licensed under GPLv3. You care free to copy,\nmodify and distribute `wordpress2hugo` under those terms. See the\n`LICENSE` file for more details.\n\n## Similar Projects\n\nIf this doesn't work for you for some reason, take a look at some\nalternatives that do similar things:\n\n- https://github.com/wooni005/exitwp-for-hugo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomajid%2Fwordpress2hugo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomajid%2Fwordpress2hugo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomajid%2Fwordpress2hugo/lists"}