sutty-jekyll-theme
A theme with Sutty's design.
Installation
Add this line to your Jekyll site's Gemfile
:
gem "sutty-jekyll-theme"
And add this line to your Jekyll site's _config.yml
:
theme: sutty-jekyll-theme
And then execute:
$ bundle
Or install it yourself as:
$ gem install sutty-jekyll-theme
Usage
Add the gem and this to your _config.yml
:
theme: sutty-jekyll-theme
sasl:
load_paths:
- node_modules
Also, install Bootstrap 4.4 using NPM or Yarn:
yarn add bootstrap@~4.4
We recommend you start a site with our base site skel.sutty.nl.
The Saira font is subsetted to latin characters.
Customization
Change logo: Add your own logo in
_includes/logo.svg
, you can add some metadata, check the source file.I18n / Edit menu: This can be done by installing jekyll-locales and modifying the
_data/LANGUAGE.yml
files:
---
locale: English
# Leave empty for theme default
date_format: "%m/%d/%Y"
# This modifies the logo metadata if any (see _includes/logo.svg)
site:
title: Your site name
description: Your site description
# Title for the articles list on the homepage
home:
articles: Articles
menu:
title: "Menu"
active: "(current)"
items:
- url: "https://sutty.nl/"
text: "Sutty"
items
is an Array of Hashes with url
and text
keys.
Contributing
Bug reports and pull requests are welcome on 0xacab at https://0xacab.org/sutty/sutty-jekyll-theme. This project is intended to be a friendly and welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
If you appreciate our work, you can donate Bitcoin or contact us for other ways :)
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
will be bundled. To add a custom directory or file
to your theme-gem, please edit the regexp in
sutty-jekyll-theme.gemspec
accordingly.
License
The theme is available as anti-fascist software under the terms of the Anti Fascist MIT License.