Linux 软件免费装
Banner图

Distan

开发者 youheiokubo
更新时间 2026年8月3日 20:22
PHP版本: 8.0 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

html export static deploy static site generator

下载

0.9.18 1.0.0 1.1.0 0.9.13 0.9.15 0.9.14 0.9.16 0.9.17

详情介绍:

Distan turns WordPress into a build environment for static HTML deliverables. You author in WordPress, then export clean, self-contained HTML that runs anywhere. No WordPress, no PHP, and no database are required on the production server. Unlike static export plugins that mirror a live WordPress site, Distan is built for the case where the HTML files themselves are the deliverable. WordPress stays on the developer's side and is never published. When an update is needed, you edit in WordPress, regenerate, and hand over the difference. This suits agencies that deliver HTML files rather than a CMS — for example recruitment sites placed under a subdirectory of an existing corporate site, where adding a WordPress install is not an option. What it does Requirements The only hard requirement is loopback HTTP (the site being able to request itself). No direct SQL, no exec(), no external binaries, no external APIs. It runs on Local, MAMP, XAMPP, DDEV, Docker, or shared hosting, and works offline. Not for every case Distan is not suitable when the client updates the site themselves, when forms, search, comments, or membership are required, or for sites of only a few pages.

安装:

  1. Upload the plugin to wp-content/plugins/, or install the ZIP from Plugins → Add New → Upload.
  2. Activate it.
  3. Open the Distan menu, check the environment, set the public URL, and generate.
The output is written to wp-content/uploads/distan/dist/.

常见问题:

Does the production server need WordPress?

No. The output is static HTML. That is the point: there is no application to attack or maintain on the production server.

Do template functions work?

Yes. Generation sends a normal HTTP request per page, so get_header(), get_template_part(), template hierarchy, conditional tags, and custom fields all behave exactly as they do on the live site.

What does not work?

Anything that needs server-side processing: search forms, comment submission, contact forms, and membership. Values that depend on the current time (a copyright year printed with date('Y'), relative dates) are frozen at generation time.

Can I open the generated files directly?

Yes, with a classic theme. Block themes load their JavaScript as ES modules, which browsers refuse to load over file://. HTML, CSS, images, and links work either way; use a local server for a complete preview.

更新日志:

1.1.0 1.0.0 0.9.18 0.9.17 0.9.16 0.9.15 0.9.14 0.9.13