建立博客:标准是什么?

发布于 2024-10-09 15:32:12 字数 223 浏览 9 评论 0原文

一般来说,我对网络方面还很陌生。我想从头开始建立一个博客来进行一些练习。

几个问题:
大多数人是通过直接编辑 html 来添加博客的新条目,还是有更频繁使用的更动态的方法?
我假设您可以将条目存储在某种类型的数据库中,然后通过 javascript 或类似的东西显示它们?对于我所描述的内容,最常用的工具是什么?我知道它非常简单,但像大多数事情一样,我只需要一些技巧即可开始。

谢谢!

I'm generally pretty new at web stuff. I wanted to build a blog from scratch to get some practice.

Few questions:
Do most people add new entries of a blog by directly editing the html or is there a more dynamic way of doing this that is used more frequently?
I'm assuming you can store the entries in some type of database and then display them via javascript or something similar? What are the most frequently used tools for what I'm describing? I know its about as simple as it gets, but like most things, I just need some tips to get started.

Thanks!

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

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

发布评论

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

评论(3

岛徒 2024-10-16 15:32:13

大多数人安装并使用 Wordpress

没有人手动编辑博客 HTML。让 javascript 直接联系数据库的情况并不常见 - 更常见的是让 Python 或 PHP 完成这项工作并生成提供给最终用户的 HTML。

如果您想从头开始创建一个全新的博客系统作为学习体验,您可能需要查看 Django 和 Python新系统的基础。

许多其他人使用 PHP 来构建这样的应用程序。

Most people install and use Wordpress.

Nobody edits blog HTML by hand. It's unusual to have javascript directly contacting a database - it's more common to have Python or PHP do that job and generate HTML that is served to the end user.

If you want to create a brand new blogging system from scratch as a learning experience, you might want to check out Django and Python as a base for your new system.

Many other people use PHP to build apps like this.

嘿哥们儿 2024-10-16 15:32:13

我更喜欢使用静态生成器,例如 Jekyll。我不会将其视为“标准”,但我相信预先/一次性生成的方法经常被忽视。对我来说,像 Jekyll 这样的工具的优点是:

  1. 无需设置/配置额外的数据库服务器。另一方面,如果你想了解不同的数据库/ORM 等,这会更加不利:-)
  2. 可以使用 emacs 通过 SSH 来编辑/创建帖子(可以使用简单的标记/标记格式)。请注意,这并不意味着“编辑 HTML”,而是编辑由后台作业自动生成静态 HTML 的标记。
  3. 这很简单。

快乐编码/写博客。

I prefer using a static generator such as Jekyll. I won't press it as "standard", but I believe that the pre/once-generated approach is often overlooked. For me the advantages of a tool like Jekyll are:

  1. No additional DB server to setup/configure. On the other hand, if you want to learn about different databases/ORMs, etc, this is more of a detriment :-)
  2. Can just SSH in and edit/create posts (easy markdown/markup formats available) with emacs. Note that this does not mean "edit the HTML" rather, one edits markup which is automatically generated into static HTML by a background job.
  3. It's simple.

Happy coding/blogging.

伴我老 2024-10-16 15:32:13

正如 Paul 所说,直接将条目编写为 HTML 的情况并不常见。一些博客系统允许调整 HTML,但通常创作是使用所见即所得编辑器完成的。有很多套餐;一个有趣的替代方案是 Thingamablog,因为它允许发布纯 HTML,因此不需要数据库。

另一种选择是使用 Ning 创建并托管您自己的博客网站 - 虽然它不仅仅是一个博客;但也配备了博客系统和常见的好东西(评论)。简单版本为 3 美元/月(或 20 美元/年);虽然不是免费的,但对于完整托管和运行您自己的广告(通常是 Adsense)的能力来说还不错。如果您拥有大量会员,则有很大的增长空间;如果需要更多集成选项,则更昂贵的计划具有更多功能。

As Paul said, it is not common that entries are directly written as HTML. Some blogging systems allow tweaking of HTML, but usually authoring is done using a WYSIWYG editor. There are lots of packages; one interesting alternative is Thingamablog, as it allows publishing of plain HTML so no database is required.

One other alternative is to create and host your own blogging site with Ning -- while it is much more than a blog; but does also come with a blogging system and the usual goodies (commenting). Simple version is 3$ / month (or 20$ for year); while not free it's not too bad for full hosting and ability to run your own ads (usually adsense). There's plenty of room for growth if you get lots of members, and more expensive plans have more features if one wants more integration options.

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