Linux command
jekyll 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Create new site
jekyll new [site_name]
Build site
jekyll build
Serve locally
jekyll serve
Serve with live reload
jekyll serve --livereload
Build for production
JEKYLL_ENV=production jekyll build
Build with drafts
jekyll serve --drafts
说明
Jekyll is a static site generator. It transforms Markdown and Liquid templates into static HTML. The tool powers GitHub Pages. It supports blogs, documentation, and custom sites with themes and plugins.
参数
- new _NAME_
- Create new site.
- build
- Build site to _site/.
- serve
- Serve locally with auto-rebuild.
- --livereload
- Enable live browser reload.
- --drafts
- Include draft posts.
- -d _DIR_
- Destination directory.
- --help
- Display help information.
FAQ
What is the jekyll command used for?
Jekyll is a static site generator. It transforms Markdown and Liquid templates into static HTML. The tool powers GitHub Pages. It supports blogs, documentation, and custom sites with themes and plugins.
How do I run a basic jekyll example?
Run `jekyll new [site_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does new _NAME_ do in jekyll?
Create new site.