11up 中文文档教程
11up
从一些网站快速引导 110 个网站基本模板。
Project templates
模板列表会慢慢增长。 目前通过 11up 可用:
- https://github.com/philhawksworth/11ty-scaffold-with-sass
- https://github.com/philhawksworth/11ty-with-serverless
- https://github.com/11ty/eleventy-base-blog
- https://github.com/5t3ph/11ty-netlify-jumpstart
Prerequisites
- Node and npm - For running the command and using 11ty
- Netlify CLI - For dev utilities like serverless functions on Netlify.
Usage
无需安装此包,您可以使用 npx
创建新的站点结构。
npx 11up
- Choose one of the starter templates (it's a short list for now)
- Create your new site in the current directory or create a new subdirectory
- That's it
< img src="https://user-images.githubusercontent.com/5865/105028434-ede0a600-5a48-11eb-8a93-3ab77661dfed.jpg" alt="New site scaffold created" title="New site scaffold created">
See more information about the templates
To发现有关可用模板的更多信息,您可以通过列表参数查看它们的列表以及指向其 GitHub 存储库的链接。
npx 11up list
Updating for the latest version
为确保您始终使用最新的模板,您可以在执行 npx
时向 npm 请求最新版本,如下所示:
npx 11up@latest
11up
Quickly bootstrap 11ty sites from some basic templates.
Project templates
The list of templates will slowly grow. Currently available via 11up:
- https://github.com/philhawksworth/11ty-scaffold-with-sass
- https://github.com/philhawksworth/11ty-with-serverless
- https://github.com/11ty/eleventy-base-blog
- https://github.com/5t3ph/11ty-netlify-jumpstart
Prerequisites
- Node and npm - For running the command and using 11ty
- Netlify CLI - For dev utilities like serverless functions on Netlify.
Usage
No need to install this package, you can create a new site structure by using npx
.
npx 11up
- Choose one of the starter templates (it's a short list for now)
- Create your new site in the current directory or create a new subdirectory
- That's it
See more information about the templates
To discover more about the available templates you can see a listing of them along with links to their GitHub repositories via the list argument.
npx 11up list
Updating for the latest version
To ensure you always use the latest templates, you can ask npm for the latest release as you execute npx
like this:
npx 11up@latest