jekyll-tabs 0.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +3 -0
- data/LICENSE +21 -0
- data/README.md +10 -2
- data/docs/tabs.css +2 -3
- data/jekyll-tabs.gemspec +1 -1
- data/lib/jekyll-tabs/version.rb +1 -1
- data/lib/jekyll-tabs.rb +1 -1
- data/lib/template.erb +11 -11
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c266623f115ba3a1622127faa6198a519ec07f088acf63eda6f3699ddcedc9d
|
4
|
+
data.tar.gz: 41a9a2a5a7900e78b74b26bf251ff78a997fd62bb4992e9b2adf37d7a57421aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a528f0a8014d0fa8c623fc364cd8d9a617d37a6fdd319c8fcbfd53580fb1e87e6e226e995bc2ad4c5a4c26acd7021ceb47fcbe04e8eb7a5412c80c200c116d6b
|
7
|
+
data.tar.gz: 712766d195a12f7db59a4fb78d086cd6199b9d50a392afc396f4c8cd4d372aec83a714a5dac6b70efc0ca0eaaa0193a4a8746a130b079e05edd7ea5d120e88de
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2022 Baptiste Bouchereau
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
Jekyll Tabs
|
2
2
|
===========
|
3
3
|
|
4
|
-
This Jekyll plugin provides tags used to add tabs in your content.
|
4
|
+
This Jekyll plugin provides tags used to add tabs in your content. It is heavily inspired from https://github.com/clustergarage/jekyll-code-tabs.
|
5
|
+
* It works with multiple tab panels on the same page
|
6
|
+
* It does not require a specific javascript framework
|
5
7
|
|
6
8
|
Installation
|
7
9
|
------------
|
@@ -55,7 +57,7 @@ Include the script in your layout, for instance in **_layouts_/default.html**
|
|
55
57
|
|
56
58
|
Feel free to style it the way you want. Here is an example.
|
57
59
|
|
58
|
-
Create a file called **custom.css** in **public/css** with [this content](docs/tabs.css). Include it in **_include/head.html
|
60
|
+
Create a file called **custom.css** in **public/css** with [this content](docs/tabs.css). Include it in **_include/head.html**
|
59
61
|
|
60
62
|
```html
|
61
63
|
<link rel="stylesheet" href="/public/css/custom.css">
|
@@ -116,3 +118,9 @@ hello:
|
|
116
118
|
{% endtabs %}
|
117
119
|
|
118
120
|
````
|
121
|
+
|
122
|
+
Here is the result:
|
123
|
+
|
124
|
+

|
125
|
+
|
126
|
+
Characters before the first space must be the same between tabs of the same scope (log and data-struct in this example). Every characters following will be displayed as the tab label.
|
data/docs/tabs.css
CHANGED
@@ -18,9 +18,8 @@
|
|
18
18
|
text-align: center;
|
19
19
|
padding: 9px 20px;
|
20
20
|
color: #999;
|
21
|
-
border-bottom: 2px solid
|
22
|
-
transparent;
|
23
|
-
border-bottom-color: transparent;
|
21
|
+
border-bottom: 2px solid transparent;
|
22
|
+
border-bottom-color: transparent;
|
24
23
|
font-size: 12px;
|
25
24
|
text-transform: uppercase;
|
26
25
|
transition: color .1s ease-in-out;
|
data/jekyll-tabs.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.description = 'Generate a tabbed interface on top of markup'
|
10
10
|
spec.version = Jekyll::Tabs::VERSION
|
11
11
|
|
12
|
-
spec.authors = ['Baptiste Bouchereau']
|
12
|
+
spec.authors = ['Nejc Zdovc', 'Baptiste Bouchereau']
|
13
13
|
spec.email = ['baptiste.bouchereau@gmail.com']
|
14
14
|
spec.homepage = 'https://github.com/ovski4/jekyll-tabs'
|
15
15
|
spec.licenses = ['MIT']
|
data/lib/jekyll-tabs/version.rb
CHANGED
data/lib/jekyll-tabs.rb
CHANGED
data/lib/template.erb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
<ul class="tab" data-tab="<%= uuid %>">
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
<ul class="tab" data-tab="<%= uuid %>" data-name="<%= @name %>">
|
2
|
+
<% environment["tabs-#{@name}"].each_with_index do |(key, value), index| %>
|
3
|
+
<li<%= index == 0 ? ' class="active"' : ''%>>
|
4
|
+
<a href="#"><%= key %></a>
|
5
|
+
</li>
|
6
|
+
<% end %>
|
7
|
+
</ul>
|
8
|
+
<ul class="tab-content" id="<%= uuid %>" data-name="<%= @name %>">
|
9
|
+
<% environment["tabs-#{@name}"].each_with_index do |(key, value), index| %>
|
10
|
+
<li<%= index == 0 ? ' class="active"' : ''%>><%= value %></li>
|
11
|
+
<% end %>
|
12
12
|
</ul>
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-tabs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- Nejc Zdovc
|
7
8
|
- Baptiste Bouchereau
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2022-02-25 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: jekyll
|
@@ -37,6 +38,8 @@ executables: []
|
|
37
38
|
extensions: []
|
38
39
|
extra_rdoc_files: []
|
39
40
|
files:
|
41
|
+
- Gemfile
|
42
|
+
- LICENSE
|
40
43
|
- README.md
|
41
44
|
- docs/tabs-example.png
|
42
45
|
- docs/tabs.css
|
@@ -64,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
67
|
- !ruby/object:Gem::Version
|
65
68
|
version: '0'
|
66
69
|
requirements: []
|
67
|
-
rubygems_version: 3.
|
70
|
+
rubygems_version: 3.1.2
|
68
71
|
signing_key:
|
69
72
|
specification_version: 4
|
70
73
|
summary: A Jekyll plugin to add tabs
|