{"id":20334891,"url":"https://github.com/mdb/wp2middleman","last_synced_at":"2025-04-11T21:51:27.300Z","repository":{"id":12423066,"uuid":"15077894","full_name":"mdb/wp2middleman","owner":"mdb","description":"Migrate the posts in a Wordpress XML export file to Middleman-style markdown files.","archived":false,"fork":false,"pushed_at":"2015-11-04T03:09:17.000Z","size":511,"stargazers_count":38,"open_issues_count":4,"forks_count":15,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T17:49:31.206Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-10T13:31:54.000Z","updated_at":"2025-02-25T13:52:18.000Z","dependencies_parsed_at":"2022-09-14T02:02:29.495Z","dependency_job_id":null,"html_url":"https://github.com/mdb/wp2middleman","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fwp2middleman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fwp2middleman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fwp2middleman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Fwp2middleman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdb","download_url":"https://codeload.github.com/mdb/wp2middleman/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248296080,"owners_count":21080223,"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":[],"created_at":"2024-11-14T20:38:30.195Z","updated_at":"2025-04-11T21:51:27.270Z","avatar_url":"https://github.com/mdb.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/mdb/wp2middleman.png?branch=master)](https://travis-ci.org/mdb/wp2middleman)\n[![Code Climate](https://codeclimate.com/github/mdb/wp2middleman/badges/gpa.svg)](https://codeclimate.com/github/mdb/wp2middleman)\n\n# wp2middleman\n\nA command line tool to help move a Wordpress blog to [Middleman](http://middlemanapp.com).\n\nwp2middleman migrates the posts contained in a Wordpress XML export file to Middleman-style markdown files.\n\n## Installation\n\n```\ngem install wp2middleman\n```\n\n## Commandline Usage\n\n```\nwp2mm some_wordpress_export.xml\n```\n\nResults in YYYY-MM-DD-Some-Title.html.markdown, formatted as such:\n\n```\n---\ntitle: 'Some Title'\ndate: YYYY-MM-DD\ntags: foo, bar\n---\n\n\u003cp\u003eThe post content in HTML or text, depending on how it was saved to Wordpress.\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003elist item\u003c/li\u003e\n\u003cli\u003eanother list item\u003c/li\u003e\n\u003c/ul\u003e\n```\n\n## Optional Parameters\n\n```\n--body_to_markdown                         converts to markdown\n--include_fields=FIELD_ONE FIELD_TWO ETC   includes specific fields in frontmatter\n```\n\n### Convert to Markdown\n\n```\nwp2mm some_wordpress_export.xml --body_to_markdown true\n```\n\nResults in YYYY-MM-DD-Some-Title.html.markdown, formatted as such:\n\n```\n---\ntitle: 'Some Title'\ndate: YYYY-MM-DD\ntags: foo, bar\n---\n\nThe post content in markdown or text, depending on how it was saved to Wordpress.\n\n* list item\n* another list item\n```\n\n### Include specific post fields\n\n```\nwp2mm some_wordpress_export.xml --include_fields wp:post_id link\n```\n\nPulls the specified key/values out of the post xml and includes it in frontmatter:\n\n```\n---\ntitle: 'Some Title'\ndate: YYYY-MM-DD\ntags: foo, bar\nwp:post_id: '280'\nlink: http://somewebsite.com/2012/10/some-title\n---\n\n\u003cp\u003eThe post content in HTML or text, depending on how it was saved to Wordpress.\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003elist item\u003c/li\u003e\n\u003cli\u003eanother list item\u003c/li\u003e\n\u003c/ul\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Fwp2middleman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdb%2Fwp2middleman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Fwp2middleman/lists"}