jekyll-theme-amethyst 0.3.0 → 0.3.1

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: 8528b24fa548044f1650452f5e97ac5d84725985de5432cef5c9663d859d286b
4
- data.tar.gz: ed4f1aff5cdfcbb955eaf53d28335b675442fff98f1e5a2aa90128a433be91f7
3
+ metadata.gz: 0aaebdf3c406b02d936449860b4c7a5ba6c095bbd9e5c38f7b285baeeb7a0076
4
+ data.tar.gz: 63ef83f3c508dccf24cfd7b1fe932601acaccf117437b11cf48f366f15e3eef9
5
5
  SHA512:
6
- metadata.gz: 9692ea4cca6a18a9c08249990a289209fd88c8cea6e211a8d2a15790e37acbb34002f852fe43501d01764b1632b966009f34d01bd44f6e017ae4b84ca981fc50
7
- data.tar.gz: 5a222a9c7538dc9563f7d7ef949a4dc453f73ee587f5b7c9aa12b4c0f6e9e1dacae6e153036936003202785cd5acdab88fb0d18c76a41436c8e8c0c142c72bef
6
+ metadata.gz: 8608f987de9794140e314ddcbff2df3bb45057e48de3b73e0f71cbca2bf2a1ccb474e4b0191fc06ea2e8222e8a513ff30a7d8a8e1e0699d990967fed83235409
7
+ data.tar.gz: f61ecbe0b8d1d33d1033a7bf419e53ef6e17149cc2cfc7624e6915afe6baab935c63abcd8076f846edff4cd45a6dca00eb3ef203d0ab3e039bbf952c9c5a9d6f
@@ -41,7 +41,6 @@ Block data:
41
41
 
42
42
  {%- endcomment -%}
43
43
  <aside class="sidebar" role="complementary">
44
- {%- if include.blocks -%}
45
44
  {%- for block in site.data[include.blocks] -%}
46
45
  {%- assign block_type = block.type | default: "group" -%}
47
46
  {%- assign block_title = block.title -%}
@@ -96,14 +95,15 @@ Block data:
96
95
  {%- endfor -%}
97
96
 
98
97
  {%- if include.toc -%}
99
- <hr>
100
- {%- endif -%}
101
- {%- endif -%}
102
-
103
- {%- if include.toc -%}
104
- <div class="toc-wrapper">
105
- <h4>Table of contents</h4>
106
- {%- include toc.html html=content sanitize=true h_max=3 ordered=true skip_no_ids=true class="toc" item_class="sidebar-item" -%}
107
- </div>
108
- {%- endif -%}
98
+ {%- capture jekyll_toc -%}
99
+ {%- include toc.html html=content sanitize=true h_max=3 ordered=true skip_no_ids=true class="toc" item_class="sidebar-item" -%}
100
+ {%- endcapture -%}
101
+ {%- if jekyll_toc != '' -%}
102
+ {%- if include.blocks -%}
103
+ <hr>
104
+ {%- endif -%}
105
+ <div class="toc-wrapper">
106
+ <h4>Table of contents</h4>{{ jekyll_toc }}</div>
107
+ {%- endif -%}
108
+ {%- endif %}
109
109
  </aside>
data/_includes/toc.html CHANGED
@@ -179,4 +179,4 @@
179
179
  {% capture jekyll_toc %}<{{ listModifier }}{{ rootAttributes }}>{{ nodes | shift | join: '>' }}>{% endcapture %}
180
180
  {% endif %}
181
181
  {% endif %}
182
- {% endcapture %}{% assign tocWorkspace = '' %}{{ deprecation_warnings }}{{ jekyll_toc }}
182
+ {% endcapture %}{% assign tocWorkspace = '' %}{{ deprecation_warnings }}{{ jekyll_toc -}}
data/_layouts/group.html CHANGED
@@ -1,5 +1,7 @@
1
1
  ---
2
2
  layout: page-api
3
+ amethyst:
4
+ toc: false
3
5
 
4
6
  # Parameters:
5
7
  #
@@ -35,5 +35,9 @@ layout: wrapper
35
35
  {%- endif %}
36
36
  {{- content }}
37
37
  </div>
38
- {% include sidebar.html blocks="sidebar_api" toc=true %}
38
+ {%- assign toc = true -%}
39
+ {%- if layout.amethyst.toc == false -%}
40
+ {%- assign toc = false -%}
41
+ {%- endif %}
42
+ {% include sidebar.html blocks="sidebar_api" toc=toc %}
39
43
  </div>
data/_sass/amethyst.scss CHANGED
@@ -710,6 +710,10 @@ table {
710
710
  padding-left: 4px;
711
711
  }
712
712
 
713
+ .sidebar hr {
714
+ margin-bottom: $size-spacing;
715
+ }
716
+
713
717
  .sidebar-list {
714
718
  margin-top: 0;
715
719
  padding: 0;
@@ -750,7 +754,8 @@ table {
750
754
  margin: 0;
751
755
  padding: 0;
752
756
  }
753
- .toc .sidebar-item {
757
+ .toc .sidebar-item,
758
+ .toc .sidebar-item a {
754
759
  border-left: 0;
755
760
  }
756
761
 
data/amethyst.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "jekyll-theme-amethyst"
3
- spec.version = "0.3.0"
3
+ spec.version = "0.3.1"
4
4
  spec.summary = "https://github.com/qunitjs/jekyll-theme-amethyst"
5
5
  spec.authors = ["Timo Tijhof", "Trent Willis"]
6
6
  spec.files = `git ls-files -z`.split("\x0")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-amethyst
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timo Tijhof
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-09-19 00:00:00.000000000 Z
12
+ date: 2021-09-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll