建立博客:标准是什么?
一般来说,我对网络方面还很陌生。我想从头开始建立一个博客来进行一些练习。
几个问题:
大多数人是通过直接编辑 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
大多数人安装并使用 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.
我更喜欢使用静态生成器,例如 Jekyll。我不会将其视为“标准”,但我相信预先/一次性生成的方法经常被忽视。对我来说,像 Jekyll 这样的工具的优点是:
快乐编码/写博客。
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:
Happy coding/blogging.
正如 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.