1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 11:34:21 +00:00
bluelib/README.md

91 lines
2.8 KiB
Markdown
Raw Permalink Normal View History

2022-10-12 15:10:07 +00:00
# Bluelib Jekyll
2021-10-10 17:26:04 +00:00
2022-10-15 16:39:12 +00:00
A theme for Jekyll using [Bluelib](https://github.com/steffo99/bluelib)
2021-10-10 22:22:44 +00:00
2022-10-14 15:37:31 +00:00
\[ [**Demo**](https://gh.steffo.eu/jekyll-theme-bluelib/) \]
2022-10-15 16:39:12 +00:00
> ### **🔒 Archived**
>
> The Markdown spec says that `*`, `**` and `~~` output `<em>`, `<strong>` and `<del>` tags respectively, which I think is [semantically incorrect](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b#usage_notes) in HTML.
>
> Sadly, both of Jekyll's Markdown parsers output those tags directly, with no way to change their behaviour.
>
> Therefore, I don't see any usefulness in using Jekyll with Bluelib, so continuing this project would be pointless.
2021-10-10 17:26:04 +00:00
## Installation
Add this line to your Jekyll site's `Gemfile`:
```ruby
gem "jekyll-theme-bluelib"
```
And add this line to your Jekyll site's `_config.yml`:
```yaml
theme: jekyll-theme-bluelib
```
And then execute:
2021-10-10 19:09:08 +00:00
```console
$ bundle
```
2021-10-10 17:26:04 +00:00
Or install it yourself as:
2021-10-10 19:09:08 +00:00
```console
$ gem install jekyll-theme-bluelib
```
2022-10-12 15:10:07 +00:00
After installing, add to `_config.yml` your desired config:
2021-10-10 19:09:08 +00:00
```yml
2022-10-12 15:10:07 +00:00
title: "Bluelib Jekyll"
bluelib:
rulesets:
- base.root
- classic.root
- glass.root
- colors-royalblue.root
- fonts-fira-ghpages.root
background: >-
url(https://gh.steffo.eu/bluelib/examples/Space_Default.jpg)
2021-10-10 19:09:08 +00:00
```
2021-10-10 17:26:04 +00:00
## Usage
2022-10-12 15:10:07 +00:00
The theme provides three layouts: `0_default`, `1_base` and `2_blog`.
2021-10-10 19:09:08 +00:00
2022-10-12 15:10:07 +00:00
### `0_page`
2021-10-10 19:09:08 +00:00
2022-10-12 15:10:07 +00:00
Default is the simplest layout of the three, and creates the page root, containing only **the Bluelib rulesets** sourced from [UNPKG](https://unpkg.com/), and an **empty body**.
2021-10-10 17:26:04 +00:00
2022-10-12 15:10:07 +00:00
In particular, it `<link>`s the rulesets using the order specified at `site.bluelib.rulesets`.
2021-10-10 17:26:04 +00:00
2022-10-12 15:10:07 +00:00
### `1_base`
2021-10-10 19:09:08 +00:00
2022-10-12 15:10:07 +00:00
Base adds the website title, hyperlinking to the site home, to the `0_page` layout.
2021-10-10 19:09:08 +00:00
2022-10-12 15:10:07 +00:00
### `2_blog`
2021-10-10 19:09:08 +00:00
2022-10-12 15:10:07 +00:00
Blog creates a panel disposition intended for posting articles in a blog-like fashon.
2021-10-10 19:09:08 +00:00
2022-10-12 15:10:07 +00:00
It currently supports the following Jekyll features:
2021-10-10 19:09:08 +00:00
2022-10-12 15:10:07 +00:00
- [x] Posts
- [ ] Tags
- [ ] Categories
2021-10-10 19:09:08 +00:00
2022-10-12 15:10:07 +00:00
It is an adequate index page layout as well!
2021-10-10 17:26:04 +00:00
## 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-bluelib.gemspec` accordingly.