You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+58-2
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ This is a clean and simple Jekyll Theme built with the [Bulma](https://bulma.io/
12
12
*[Colours and Styles](#colours-and-styles)
13
13
*[Sidebar Visibility](#sidebar-visibility)
14
14
*[Menubar](#menubar)
15
+
*[Tabs](#tabs)
15
16
*[Google Analytics](#google-analytics)
16
17
*[Contributing](#contributing)
17
18
*[Development](#development)
@@ -133,7 +134,7 @@ Create a data file in the _data directory and use the following format (if using
133
134
134
135
For the current page to have an active class, ensure the `link:` format matches your [permalink](https://jekyllrb.com/docs/permalinks/#extensionless-permalinks) format. The above example will work with `permalink: pretty` setting in your `_config.yml`
135
136
136
-
### Multiple menus
137
+
#### Multiple menus
137
138
138
139
You may make multiple menus in the same file, separated by the label
139
140
@@ -157,7 +158,62 @@ You may make multiple menus in the same file, separated by the label
157
158
link: /another-example-item/
158
159
```
159
160
160
-
### Google Anaytics
161
+
### Tabs
162
+
163
+
**New in 0.4**
164
+
165
+
The tabs gets its content from a data file in your site's `_data` directory. Simply set the name of your data file in the page's menubar setting in the frontmatter.
166
+
167
+
```yml
168
+
title: Page with tabs
169
+
subtitle: Demo page with tabs
170
+
layout: page
171
+
show_sidebar: false
172
+
menubar: example_menu
173
+
tabs: example_tabs
174
+
```
175
+
176
+
Tabs can be used in conjunction with menubar and/or sidebar if you wish.
177
+
178
+
#### Creating a tabs data file
179
+
180
+
Create a data file in the _data directory and use the following format (if using yml)
181
+
182
+
```yml
183
+
alignment: is-left
184
+
style: is-boxed
185
+
size: is-large
186
+
items:
187
+
- name: Tabs
188
+
link: /page-4/
189
+
icon: fa-smile-wink
190
+
- name: Sidebar
191
+
link: /page-1/
192
+
icon: fa-square
193
+
- name: No Sidebar
194
+
link: /page-2/
195
+
icon: fa-ellipsis-v
196
+
- name: Menubar
197
+
link: /page-3/
198
+
icon: fa-bars
199
+
```
200
+
201
+
#### Settings
202
+
203
+
You can control the alignment, style and size of the tabs by using the relevant [Bulma tabs classes](https://bulma.io/documentation/components/tabs/).
204
+
205
+
#### Active Tab Highlighting
206
+
207
+
It will automatically mark the active tab based on the current page.
208
+
209
+
#### Icons
210
+
211
+
You can add icons to your tab by passing in the [Font Awesome icon class](https://fontawesome.com/icons?d=gallery).
212
+
213
+
If you don't wish to show icons then simply omit the option from your yaml file.
0 commit comments