This is a simple starter template for creating a Jekyll site with Tailwind CSS. It includes basic setup and configuration for Jekyll, a static site generator, and Tailwind CSS, a utility-first CSS framework.
Follow these steps to get your Jekyll + Tailwind CSS site up and running:
- Clone this repository to your local machine.
- Navigate to the project directory.
- Run
npm install tailwindcss @tailwindcss/typography cssnano postcss postcss-cli daisyui postcss-import autoprefixer
to install the necessary Node.js packages. - Run
bundle update
to update the Ruby dependencies. - Run
bundle install
to install the necessary Ruby gems. - Run
bundle exec jekyll serve -l -o
to start the Jekyll server.
Your site should now be running at http://localhost:4000
.
To deploy your site to GitHub Pages, follow these steps:
- Open
_config.yml
. - Update
url: 'https://your-name.github.io'
with your GitHub Pages URL. - Update
baseurl: 'your-repo-name'
with the name of your GitHub repository. - Run
bundle exec jekyll build
- Run
npx gh-pages -d _site
- Once published, go to the GitHub Pages settings and deploy from the
gh-pages
branch.
Your site should be live at https://your-name.github.io/your-repo-name
.
This template uses configurations and tweaks inspired by the following sources: