Linux 软件免费装
Banner图

Static Site Exporter

开发者 benbalter
更新时间 2026年11月8日 02:40
PHP版本: 8.2 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

export markdown jekyll static site hugo

下载

2.2.3 2.3.0 2.2.2 2.3.4 2.4.2 3.1.0 4.2.0 4.4.0 4.5.0 4.6.0 3.1.2 4.1.1 3.0.0 3.0.2 2.3.6 2.4.0 2.4.1 3.0.1 2.0.1 3.1.1 2.3.1 4.0.1 3.1.3 2.0 4.3.0 2.1.0 2.3.3 4.0.0 4.0.2 4.0.3 4.0.4 4.1.0 2.1.1 2.2.0 2.2.1 2.3.2 2.3.5

详情介绍:

Export your WordPress posts and pages to Markdown in a couple of clicks, ready for Jekyll, Hugo, or any other static site generator.

屏幕截图:

  • The zip has your posts, drafts, pages, and settings, laid out for Jekyll.
  • Each post is Markdown with YAML front matter: title, date, author, categories, tags, and its original URL.

升级注意事项:

4.6.0 Adds Hugo, Astro, and Eleventy exports. Posts with a More tag or Page Breaks are exported in full again; since 2.4.2, the export stopped at the first break, so re-export to get the rest of those posts. 4.5.0 Security update: fixes two bugs in the bundled HTML-to-Markdown converter that let a single large post stall an export. Some converted Markdown changes; see the changelog.

常见问题:

Does it work with Hugo, Eleventy, or other static site generators?

Yes. Pick Hugo, Astro, or Eleventy from the format dropdown under Tools → Export to Static Site, or pass --format on the command line, and the export is laid out for that generator, with its folders, draft markers, and config file: wp jekyll-export --format=hugo --output=export.zip Jekyll is the default. Every format is Markdown with YAML front matter, which most other generators read too. See Output formats for what each one includes.

My export times out, or the zip file is empty. What can I do?

Large sites can run past PHP's time or memory limits in the browser. Use WP-CLI instead, which has no time limit, and write the zip straight to a file: wp jekyll-export --output=export.zip If your media library is large, add --skip-uploads and copy wp-content/uploads separately. See Performance Tips for Large Sites for more.

Can I export only some of my posts?

Yes. With WP-CLI, filter by category, tag, post type, or status: wp jekyll-export --category=technology --post_status=publish > export.zip See Selective Export for every option, including the PHP filters.

Where do my images and other media go?

The export copies wp-content/uploads into the zip and rewrites links to your media as relative URLs (/wp-content/uploads/...), so they keep working on the new site.

Will my old URLs keep working?

Each post's front matter includes its WordPress URL (permalink, or url for Hugo), so Jekyll, Hugo, and Eleventy publish it at the same address. For Astro, Output formats has a route that does the same.

Are drafts exported?

Yes, into _drafts/ for Jekyll. Hugo, Astro, and Eleventy keep drafts next to your posts, marked draft: true. To leave them out, use wp jekyll-export --post_status=publish.

Does it export custom post types and custom fields?

Custom fields are exported as front matter. Custom post types need one filter to include them, and the export then declares each one as a Jekyll collection. See Custom post types and Custom fields.

Does the export include the text after a "More" tag?

Yes. Each post is exported in full, including everything after a More tag (the "Continue reading" break) and every page of a post split with a Page Break. The More tag stays in the Markdown as <!--more-->, which Hugo treats as the end of a post's summary. To use it for excerpts in Jekyll, add excerpt_separator: <!--more--> to the front matter of the posts that have one. Setting it in _config.yml instead also works, but then any post without the tag uses its whole text as the excerpt.

更新日志:

4.6.0 This release exports for Hugo, Astro, and Eleventy as well as Jekyll, and exports posts in full again. Review the note marked Export change before re-exporting a site you've exported before. 4.5.0 This release fixes a bug in 4.4.0 that exported every post as HTML instead of Markdown, and updates the HTML-to-Markdown converter for two security fixes, which also change some converted Markdown. Review the notes marked Export change before re-exporting a site you've exported before. 4.4.0 This release updates the HTML-to-Markdown converter for security fixes, which changes some converted Markdown. Review the note marked Export change before re-exporting a site you've exported before. 4.3.0 This release changes what some exports contain. Review the notes marked Export change before re-exporting a site you've exported before. 4.2.0 4.1.1 4.1.0 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 View Past Releases