geoffselby / puzzle-plain-preset
基于 Tailwind CSS 的 Jigsaw 网站的一个基本空白模板
v1.0.2
2019-05-16 19:48 UTC
Requires
- samdark/sitemap: ^2.2
- tightenco/jigsaw: ^1.3
- dev-master
- v1.0.2
- v1.0.1
- v1.0.0
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/engine.io-and-browser-sync-6.2.1
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/socket.io-parser-and-browser-sync-4.2.1
- dev-dependabot/npm_and_yarn/eventsource-1.1.1
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/ajv-6.12.6
- dev-dependabot/npm_and_yarn/tar-4.4.19
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/ssri-6.0.2
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.7
- dev-dependabot/npm_and_yarn/websocket-extensions-0.1.4
- dev-dependabot/npm_and_yarn/acorn-6.4.1
- dev-dependabot/npm_and_yarn/mixin-deep-1.3.2
This package is auto-updated.
Last update: 2024-08-30 01:20:17 UTC
README
这是一个基本空白模板,用于在 Jigsaw 和 Tailwind CSS 中创建网站,几乎不需要任何努力。
安装
如果使用 Puzzle CLI,这是一个默认的预设。这意味着你可以直接运行
puzzle new my-site
如果你想要更明确,可以这样做
puzzle new my-site --preset plain
如果你是手动安装 Jigsaw,在安装 Jigsaw 后,从你的项目目录运行以下命令
./vendor/bin/jigsaw init geoffselby/puzzle-plain-preset
这个启动模板包含以下内容。
- Tailwind CSS V1.0 预先安装和配置
- Purgecss 用于从你的 CSS 中删除未使用的选择器,从而减小 CSS 文件的大小
- 一个自动生成
sitemap.xml
文件的脚本 - 自定义的 404 页面
配置导航
为了保持导航易于配置,它通过你的网站配置进行管理,如 这篇博客文章 所示。要配置你的导航,从根目录打开 navigation.php
。每个数组都是导航中的链接。
必需的键只有 link
,页面的 uri,以及 title
,链接的显示标题。
// navigation.php return [ [ 'link' => '/', 'title' => 'Home', ], [ 'link' => '/about', 'title' => 'About', ], [ 'link' => '/contact', 'title' => 'Contact', ], ... ];