juicelang-theme 0.4.0 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 611c546d0004cfb41f3627c1fa188ab79cf2ff4f864be6e67ab934bb5ae4ae5c
4
- data.tar.gz: 7bb3f001686c7a4fb858a40951cc11f1428ac05b4f2d4cb35f300a8602abd2c3
3
+ metadata.gz: 26bacdf52f033087ab922385ef9a061326664bbdbe1d2643027af5ee78759d2e
4
+ data.tar.gz: dff6929e9eb3ac14252cd3d3ed4be7cf543ddd1b53812f66462f21cc90c6c9bb
5
5
  SHA512:
6
- metadata.gz: '08837dd2c714ff87d9b6758448bf7f0275fb968cba6d764cd7c956feafcc9c1de28881a4d445d2970fcb8781875f3d760c8ac5db9f9f613d4adb90d1bbb4440d'
7
- data.tar.gz: 3a2ca51818a9a649a440bfd07552bb4ad25398eac1cf27b743386e0ad63d59d7f9da753a5747c17aefcc255694694ea45226c5bd2ea04d44c712a03bc9bef9cd
6
+ metadata.gz: 1eca97ce4a0e0b773efe1a17441cdf7ce1e8cb800ae0cf14fd7949a07bcc0cb2579afcee0a8f02e7c6ede349e5fb3ca4e27eb16de6a16b86788c42acbb98c389
7
+ data.tar.gz: 0e8465b7676926e175c91ca33d3459f9e7499ac15b3bf779c45e2485fd01461e930eab28fc5a4ff7b13edec89f66572e7e8e2e9ded6f4c397f6ed72a19d1f8c0
data/README.md CHANGED
@@ -8,28 +8,34 @@ This is the theme of the website of the *juice* programming language ([juicelang
8
8
  Add this line to your Jekyll site's `Gemfile`:
9
9
 
10
10
  ```ruby
11
- gem "juicelang-theme"
11
+ gem "juicelang-theme", "~> 0.4", group: :jekyll_plugins
12
12
  ```
13
13
 
14
- And add this line to your Jekyll site's `_config.yml`:
14
+ And add the following lines to your Jekyll site's `_config.yml`:
15
15
 
16
16
  ```yaml
17
17
  theme: juicelang-theme
18
+ plugins:
19
+ - juicelang-theme
18
20
  ```
19
21
 
20
- And then execute:
22
+ Then execute:
21
23
 
22
- $ bundle
24
+ ```bash
25
+ $ bundle install
26
+ ```
23
27
 
24
- Or install it yourself as:
28
+ Or install the gem yourself using:
25
29
 
26
- $ gem install juicelang-theme
30
+ ```bash
31
+ $ gem install juicelang-theme
32
+ ```
27
33
 
28
34
  ## Development
29
35
 
30
36
  To set up your environment to develop this theme, run `bundle install`.
31
37
 
32
- To test this 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 this theme's contents. As you make modifications to this theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
38
+ To test this theme, run `bundle exec jekyll serve --watch` 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 this theme's contents. As you make modifications to this theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
33
39
 
34
40
  ## License
35
41
 
data/_includes/toc.html CHANGED
@@ -1,7 +1,9 @@
1
- <div class="sidebar-right uk-visible@l">
2
- <div uk-sticky="offset: 175">
3
- <ul class="uk-nav uk-nav-default" uk-scrollspy-nav="closest: li; scroll: true; offset: 175">
4
- {% toc %}
5
- </ul>
1
+ {% unless page.no_toc %}
2
+ <div class="sidebar-right uk-visible@l">
3
+ <div uk-sticky="offset: 175">
4
+ <ul class="uk-nav uk-nav-default" uk-scrollspy-nav="closest: li; scroll: true; offset: 175">
5
+ {% toc %}
6
+ </ul>
7
+ </div>
6
8
  </div>
7
- </div>
9
+ {% endunless %}
@@ -24,6 +24,9 @@
24
24
  <meta name="theme-color" content="#02020b" media="(prefers-color-scheme: dark)">
25
25
 
26
26
  <link href="{{ '/assets/css/default.css' | absolute_url }}" rel="stylesheet">
27
+ {% if page.additional_css %}
28
+ <link href="{{ page.additional_css | absolute_url }}" rel="stylesheet">
29
+ {% endif %}
27
30
  </head>
28
31
  <body>
29
32
  <nav class="uk-navbar-container uk-container uk-container-expand uk-navbar-transparent uk-light header" uk-navbar>
@@ -2,7 +2,7 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- <div class="uk-container uk-container-expand content" uk-height-viewport="offset-top: true; offset-bottom: true">
5
+ <div class="uk-container uk-container-expand uk-padding-remove content" uk-height-viewport="offset-top: true; offset-bottom: true">
6
6
  {{ content }}
7
7
  {% include previous_and_next.html %}
8
8
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: juicelang-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josef Zoller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-31 00:00:00.000000000 Z
11
+ date: 2022-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll