什么是静态网站生成器? [英] What is a static site generator?

查看:71
本文介绍了什么是静态网站生成器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

放弃Wordpress之后,我一直在与Jekyll一起尝试创建博客.当我写博客时,我选择了它(通过Ghost)来帮助学习Web开发的基础知识.此外,在GitHub Pages上的免费托管既简洁又免费.

After ditching Wordpress, I've been experimenting with Jekyll to create a blog. I chose it (over Ghost) to help learn the basics of web development while I blogged. Also, the free hosting on GitHub Pages is neat and free.

什么是静态站点生成器(如Jekyll),为什么它们存在?

What exactly is a static site generator (like Jekyll), and why do they exist?

推荐答案

Treehouse:

静态站点生成器获取一组模板和原始文本文件,通过转换器和渲染器运行它们,然后生成一个准备在任何Web服务器上发布的纯HTML网站.

A static-site generator takes a set of templates and raw text files, runs it through a converter and renderer, then generates a plain HTML website that's ready to publish on any web server.

优势:

  • 网站加载速度很快,因为我们向浏览器提供常规页面,并且无需根据每个请求与数据库进行通话.
  • 站点更加安全,因为没有数据库或动态内容可以被黑客入侵.
  • 涉及较少的维护.没有数据库意味着无需配置和维护数据库或内容管理系统(CMS).
  • 在GitHub Pages上免费托管
  • 使用您自己的域名

课程链接: https://teamtreehouse.com /library/build-a-blog-with-jekyll-and-github-pages

这篇关于什么是静态网站生成器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆