No commit activity in last 3 years
No release in over 3 years
Add tabs for your jekyll site. Ready for bootstrap 4
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.0
>= 3.0
 Project Readme

Jekyll Simple Tabs Gem Version

This Jekyll plugin for adding tabs. It works with bootstrap 4

Installation

Add this line to your Gemfile:

group :jekyll_plugins do
  gem "jekyll-simple-tab"
end

Add in you _config.yml:

plugins_dir:
  - jekyll-simple-tab

Plugin need bootstrap 4, add to html head tag:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>

Usage

{% tabs test %}

{% tab test#first %}
```ruby
def render(context)
  @environment = context.environments.first
  super

  templateFilePath = template_path(DEFAULT_TEMPLATE)
  template = Slim::Template.new(templateFilePath)
  template.render(self)
end
```
{% endtab %}

{% tab test#second %}
## Header

> Blockquotes

{% endtab %}

{% endtabs %}

Image