是否可以只用 html 建立一个博客?

发布于 2025-01-02 23:41:41 字数 197 浏览 3 评论 0原文

我想建立一个仅包含 HTML 的博客,这意味着没有数据库,没有 PHP,只有纯 HTML。 可以这样做吗?

这可能很奇怪,但我只想构建一个非常简单的博客,只需要 2 个功能:

  • 创建新的帖子
  • 评论

它将托管在 Azure Blob 中,因此没有 PHP,没有数据库。

谢谢。

I want to build a blog with only HTML, meaning that no database, no PHP, just plain HTML.
Is it possible to do that?

It may be weird, but I just want to build a very simple blog that just require 2 functions:

  • create new post
  • comment

It will be hosted in Azure Blob, so no PHP, no database.

Thanks.

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

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

发布评论

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

评论(3

谈场末日恋爱 2025-01-09 23:41:41

当然。 1996年人们一直这样做。

创建新帖子

  • 在记事本中打开 blog.html。
  • 代码新博文上面
  • 保存最新的blog.html,上传。

评论:

  • “哇哦,这个博客太棒了。”

Of course. People did it in 1996 all the time.

Create new post:

  • Open blog.html in notepad.
  • Code new blog post above the latest
  • Save blog.html, upload.

Comment:

  • "Woah, this blog is epic."
兮子 2025-01-09 23:41:41

好吧,我想这不是一个好主意,但如果你必须这样做,你就必须手动处理一些事情。

您将

  1. 使用任何 HTML 编辑器手动创建博客文章,并将更新的 HTML 页面手动上传到服务器。
  2. 对于评论,您可以创建“发送到电子邮件”表单(http://www.tizag.com/htmlT/forms.php)并通过电子邮件接收评论。用户发表评论后,您可以显示一条消息,说明该评论已发送以供审核。
  3. 在电子邮件中收到评论后,您必须手动更新 HTML 格式。

Javascript 或 Jquery 可用于在此过程中进行一些增强。希望这有效。 :)

Well I guess its not a good idea but if you have to do this you'll have to work a few things manually.

You will

  1. Create blog posts manually using any HTML editor and upload updated HTML pages to server manually.
  2. For comments you can create a "send to email" form (http://www.tizag.com/htmlT/forms.php) and receive comments in email. After user posts comments you can show a message saying the comment is sent for moderation.
  3. After you receive a comment in email you'll have to update it in HTML manually.

Javascript or Jquery can be used for some enhancements in the process. Hope this works. :)

王权女流氓 2025-01-09 23:41:41

不,

你如何保存帖子?只有服务器端脚本才能使这成为可能。

No.

How do you save the posts? Only serverside scripting will make this possible.

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