2021-07-17 14:41:01 +02:00
|
|
|
|
# Jekyll with Tailwind CSS
|
|
|
|
|
|
|
|
|
|
|
|
You want to run `jekyll new your-site --blank` and add
|
2021-07-17 16:34:58 +02:00
|
|
|
|
[Tailwind CSS](tailwindcss.com) yourself, right?
|
2021-07-17 14:41:01 +02:00
|
|
|
|
Don’t.
|
|
|
|
|
|
Fork this repo instead.
|
|
|
|
|
|
|
2021-07-17 18:24:36 +02:00
|
|
|
|
Minimal Jekyll and Tailwind CSS starter repo without long live-reload render times.
|
2021-07-17 16:34:58 +02:00
|
|
|
|
|
2021-07-17 18:25:27 +02:00
|
|
|
|
[Responsive demo](https://jekyll-tailwind.netlify.app/)
|
|
|
|
|
|
|
|
|
|
|
|
[](https://app.netlify.com/sites/jekyll-tailwind/deploys)
|
|
|
|
|
|
|
2021-07-17 14:41:01 +02:00
|
|
|
|
## Getting Started
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
git clone git@github.com:stefcoetzee/jekyll-tailwind your-site
|
|
|
|
|
|
cd your-site
|
|
|
|
|
|
bin/setup
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
|
|
### Development
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
2021-07-17 16:34:58 +02:00
|
|
|
|
# Make all Tailwind utility classes available for development.
|
2021-07-17 14:41:01 +02:00
|
|
|
|
bin/build-dev
|
|
|
|
|
|
|
2021-07-17 16:34:58 +02:00
|
|
|
|
# Start a live-reload server at http://localhost:4000, skipping file with Tailwind
|
|
|
|
|
|
# @import statements during regeneration.
|
2021-07-17 14:41:01 +02:00
|
|
|
|
bin/start
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Production
|
|
|
|
|
|
|
|
|
|
|
|
Delete `.site` and it’s contents to see the production build output.
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
2021-07-17 16:34:58 +02:00
|
|
|
|
# Purge unused classes.
|
2021-07-17 14:41:01 +02:00
|
|
|
|
bin/build-prod
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Credit
|
|
|
|
|
|
|
|
|
|
|
|
Thanks to [@joemasilotti](https://github.com/joemasilotti) for sharing his build
|
|
|
|
|
|
scripts [here](https://github.com/joemasilotti/masilotti.com/tree/main/bin).
|
2021-07-17 16:14:27 +02:00
|
|
|
|
Thanks to [@shafy](https://github.com/shafy) for sharing the two config-file
|
|
|
|
|
|
approach [here](https://canolcer.com/post/jekyll-and-tailwind/).
|
2021-07-17 14:41:01 +02:00
|
|
|
|
|
2021-07-17 16:34:58 +02:00
|
|
|
|
Say hi [@stef_coetzee](https://twitter.com/stef_coetzee)!
|