Skip to content

A-Trick-A-Day/a-trick-a-day.github.io

Repository files navigation

A Trick A Day

A blog to list a tons of code tricks.

Using this jekyll theme

Installation

Installing Ruby & Jekyll

If this is your first time using Jekyll, please follow the Jekyll docs and make sure your local environment (including Ruby) is setup correctly.

Installing Theme

Download or clone the theme.

To run the theme locally, navigate to the theme directory and run:

To use Tailwind and PostCSS:

npm install
bundle install
bundle add webrick

To start the Jekyll local development server.

bundle exec jekyll serve

To build the theme.

bundle exec jekyll build

To build the search algolia data.

ALGOLIA_API_KEY='your_admin_api_key' bundle exec jekyll algolia