Jekyll是ruby开发的,具有Simple、Static、Blog-aware等特点。
Jekyll已成为静态blog的标准,模板丰富,其他语言的博客,如Hexo、Gatsby blog等,都参照Jekyll设计理念。
Jekyll is the engine behind GitHub Pages。
Philosophy
Jekyll does what you tell it to do — no more, no less. Philosophy
Liquid
Jekyll uses the Liquid templating language to process templates.{{ variable }} .
Front Matter
layout: post
title: Blogging Like a Hacker
Set Blog
_config.yml.
Add A New Post
To add a new post, simply add a file in the _posts directory that follows the convention YYYY-MM-DD-name-of-post.ext and includes the necessary front matter.
网友评论