用 Java 或 PHP 编写的 CMS,允许导出为静态 HTML 页面

发布于 2024-10-03 21:13:14 字数 316 浏览 6 评论 0原文

我正在寻找一个 CMS,它允许我将网站导出为静态 HTML(即该网站必须能够在没有 CMS 本身的情况下工作)。我希望能够在我的 PC 上创建网站,然后将导出的静态 HTML 上传到托管服务器。

我必须提到,我不想使用网站下载器从 CMS 中“提取”内容,我想要 CMS 本身中有一个选项,例如“导出为静态内容”、“导出为 HTML”等。

到目前为止我找到了用于 Java 的 Alfresco 和用于 PHP 的 Typo3,但是那里有很多 CMS 工具...:(

有人可以分享他的经验并指出一个可以生成静态 HTML 的优秀 CMS 吗?

谢谢大家!

I am looking for a CMS that allows me to export the site as static HTML (i.e. the site must be able to work without the CMS itself). I want to be able to create the site on my PC and then upload the exported static HTML to a hosting server.

I must mention that I do not want to use site downloaders to "pull out" the content from a CMS, I want an option in the CMS itself, something like "Export as static content", "Export as HTML" etc.

So far I found Alfresco for Java and Typo3 for PHP but there are so many of CMS tools out there... :(

Can someone share from his experience and point to a good CMS which generates static HTML?

Thank you all!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

浪荡不羁 2024-10-10 21:13:14

看看 WordPress,我认为它有一个非常好的导出选项。或者可能是好的 ole Google 文档?

Check out Wordpress, I think it had an export option that was quite good. Or possibly good ole Google docs?

撩起发的微风 2024-10-10 21:13:14

WebJaxe 就是这样做的。实际上,它甚至不是导出:使用 WebJaxe 创建的网站始终是静态的。

WebJaxe does that. Actually, it's not even an export: websites created with WebJaxe are always static.

温馨耳语 2024-10-10 21:13:14

不要在 CMS 中重新创建轮子。选择 CMS,因为它可以解决您面临的业务问题。要生成站点的静态副本,请使用 wget

只要您不进行动态 JavaScript 库加载或 css @import 声明,wget 就会获取您需要的所有内容并将其设置在正确的相对路径目录结构中,以便您可以在其他地方静态地放置它。只要了解动态的事物,例如搜索,无论您选择哪种解决方案,都不会起作用

Don't look to recreate the wheel inside a CMS. Choose a CMS because it solves business problems you're facing. To generate a static copy of a site use wget.

So long as you're not doing dynamic JavaScript library loading or css @import declarations, wget is going to grab everything you need and set it up in the correct relatively pathed directory structure so you can stand it up statically somewhere else. Just understand things that are dynamic, like search, will not work no matter what solution you choose.

葮薆情 2024-10-10 21:13:14

您正在寻找的是一个静态网站生成器,例如 PieCrust此处还列出了许多替代方案。

What you are looking for is a static website generator like PieCrust. There is also a bunch of alternatives listed here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文