[英]What is a static site generator?
After ditching Wordpress, I've been experimenting with Jekyll to create a blog. 放弃Wordpress后,我一直在试验Jekyll创建一个博客。 I chose it (over Ghost) to help learn the basics of web development while I blogged.
我选择它(通过Ghost)来帮助我在博客时学习Web开发的基础知识。 Also, the free hosting on GitHub Pages is neat and free.
此外,GitHub页面上的免费托管是整洁和免费的。
What exactly is a static site generator (like Jekyll), and why do they exist? 什么是静态站点生成器(如Jekyll),为什么它们存在?
From Build a Blog with Jekyll and GitHub Pages course on Treehouse: 在Treehouse中 使用Jekyll和GitHub Pages课程构建博客 :
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. 静态站点生成器获取一组模板和原始文本文件,通过转换器和渲染器运行它,然后生成一个准备在任何Web服务器上发布的纯HTML网站。
Advantages: 好处:
Course Link: https://teamtreehouse.com/library/build-a-blog-with-jekyll-and-github-pages 课程链接: https : //teamtreehouse.com/library/build-a-blog-with-jekyll-and-github-pages
A static site has 3 components: 静态站点有3个组件:
There is no database from which data is retrieved, compared to something like wordpress where all of your posts and pages live in a database. 与wordpress相比,没有数据库可以从中检索数据,其中所有帖子和页面都存在于数据库中。 There is no server-side scripting engine with which to process information and render content.
没有用于处理信息和呈现内容的服务器端脚本引擎。
Static site generators exist to provide you with tools like templating, shared data, and custom tags to assist in the creation of the static HTML pages that your web server will be serving. 存在静态站点生成器,为您提供模板,共享数据和自定义标记等工具,以帮助您创建Web服务器将要提供的静态HTML页面。
The benefits of a static site are: 静态站点的好处是:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.