geoffselby / puzzle-blog-preset
为Jigsaw网站提供由Tailwind CSS支持的极简博客预设模板
v1.0.0
2019-05-16 04:22 UTC
Requires
- samdark/sitemap: ^2.2
- tightenco/jigsaw: ^1.3
- dev-master
- 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/highlight.js-10.4.1
- dev-dependabot/npm_and_yarn/websocket-extensions-0.1.4
- dev-dependabot/npm_and_yarn/acorn-6.4.1
This package is auto-updated.
Last update: 2024-08-30 01:09:40 UTC
README
为Jigsaw网站提供由Tailwind CSS支持的极简博客预设模板。
安装
如果使用Puzzle CLI,请使用值为blog的--preset
标志
puzzle new my-site --preset blog
如果您是手动安装Jigsaw,在安装Jigsaw后,从您的项目目录运行以下命令
./vendor/bin/jigsaw init geoffselby/puzzle-blog-preset
此起始模板包含以下内容。
- Tailwind CSS V1.0 已预安装并配置
- Purgecss 以从CSS中删除未使用的选择器,从而减小CSS文件大小
- 一个自动生成
sitemap.xml
文件的脚本 - 自定义404页面
我的博客文章在哪里?
所有文章都位于source/_posts
。开始新文章的最简单方法是复制一个示例文章并进行修改。
配置导航
为了便于配置导航,它通过您网站的配置来管理,如此博客文章中所示。要配置您的导航,从根目录打开navigation.php
。每个数组都是导航中的一个链接。
唯一必需的键是link
,页面URI,和title
,链接的显示标题。
// navigation.php return [ [ 'link' => '/', 'title' => 'Blog', ], [ 'link' => '/about', 'title' => 'About', ], [ 'link' => '/contact', 'title' => 'Contact', ], ... ];