jekyll-theme-lily
Lily is a fresh Jekyll theme based on Beercss. You can preview the theme to see what it looks like, or directly use it.
BREAKING CHANGES
- Due to breaking changes of Beercss 3.0, you need to divide rem unit by 16 and multiply px unit by 16 if you have custom css with rem or px units and update jekyll-theme-lily from 2.2 or below to 3.0 or above ( view details )
Installation
Add this line to your Jekyll site's Gemfile
:
gem "jekyll-theme-lily"
And add this line to your Jekyll site's _config.yml
:
theme: jekyll-theme-lily
And then execute:
$ bundle
Or install it yourself as:
$ gem install jekyll-theme-lily
Usage
To directly use the Lily theme:
-
Add the following to your site's
_config.yml
:remote_theme: HowerZiu/jekyll-theme-lily@3.0.3.1.3 plugins: - jekyll-remote-theme # add this line to the plugins list if you already have one
-
Optionally, if you'd like to preview your site on your computer, add the following to your site's
Gemfile
:gem "github-pages", group: :jekyll_plugins
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/HowerZiu/jekyll-theme-lily. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Development
To set up your environment to develop this theme, run bundle install
.
Your theme is setup just like a normal Jekyll site! To test your theme, run bundle exec jekyll serve
and open your browser at http://localhost:4000
. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
When your theme is released, only the files in _layouts
, _includes
, _sass
and assets
tracked with Git will be bundled.
To add a custom directory to your theme-gem, please edit the regexp in jekyll-theme-lily.gemspec
accordingly.
License
The theme is available as open source under the terms of the MIT License.