11up 中文文档教程

发布于 4年前 浏览 24 项目主页 更新于 3年前

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

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

11up 命令

选择模板

设置输出位置

< 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

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

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

11up command

Choose template

Set output location

New site scaffold created

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

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文