bulma-clean-theme 0.11 → 0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -634
- data/_includes/head.html +1 -1
- data/_includes/header.html +1 -1
- data/_includes/image-modal.html +1 -1
- data/_includes/notification.html +2 -2
- data/_includes/series.html +32 -0
- data/_layouts/default.html +2 -2
- data/_layouts/post.html +4 -0
- data/_layouts/recipe.html +22 -0
- data/_posts/2021-10-30-creating-a-post-series.md +59 -0
- data/node_modules/.package-lock.json +21 -0
- data/node_modules/bulma/CHANGELOG.md +521 -448
- data/node_modules/bulma/README.md +5 -2
- data/node_modules/bulma/bulma.sass +1 -1
- data/node_modules/bulma/css/bulma-rtl.css +778 -591
- data/node_modules/bulma/css/bulma-rtl.css.map +1 -1
- data/node_modules/bulma/css/bulma-rtl.min.css +1 -1
- data/node_modules/bulma/css/bulma.css +621 -434
- data/node_modules/bulma/css/bulma.css.map +1 -1
- data/node_modules/bulma/css/bulma.min.css +1 -1
- data/node_modules/bulma/package.json +28 -54
- data/node_modules/bulma/sass/base/_all.sass +3 -2
- data/node_modules/{bulma-block-list/node_modules/bulma/sass/utilities → bulma/sass/base}/animations.sass +0 -0
- data/node_modules/bulma/sass/base/generic.sass +2 -0
- data/node_modules/bulma/sass/components/_all.sass +12 -12
- data/node_modules/bulma/sass/components/breadcrumb.sass +2 -0
- data/node_modules/bulma/sass/components/card.sass +23 -3
- data/node_modules/bulma/sass/components/dropdown.sass +3 -1
- data/node_modules/bulma/sass/components/level.sass +3 -1
- data/node_modules/bulma/sass/components/media.sass +16 -9
- data/node_modules/bulma/sass/components/menu.sass +2 -0
- data/node_modules/bulma/sass/components/message.sass +2 -0
- data/node_modules/bulma/sass/components/modal.sass +2 -0
- data/node_modules/bulma/sass/components/navbar.sass +3 -0
- data/node_modules/bulma/sass/components/pagination.sass +19 -3
- data/node_modules/bulma/sass/components/panel.sass +3 -1
- data/node_modules/bulma/sass/components/tabs.sass +2 -0
- data/node_modules/bulma/sass/elements/_all.sass +12 -12
- data/node_modules/bulma/sass/elements/box.sass +3 -1
- data/node_modules/bulma/sass/elements/button.sass +27 -7
- data/node_modules/bulma/sass/elements/container.sass +2 -0
- data/node_modules/bulma/sass/elements/content.sass +4 -0
- data/node_modules/bulma/sass/elements/icon.sass +25 -0
- data/node_modules/bulma/sass/elements/image.sass +2 -0
- data/node_modules/bulma/sass/elements/notification.sass +2 -0
- data/node_modules/bulma/sass/elements/other.sass +2 -10
- data/node_modules/bulma/sass/elements/progress.sass +2 -0
- data/node_modules/bulma/sass/elements/table.sass +2 -0
- data/node_modules/bulma/sass/elements/tag.sass +2 -0
- data/node_modules/bulma/sass/elements/title.sass +2 -2
- data/node_modules/bulma/sass/form/_all.sass +6 -6
- data/node_modules/bulma/sass/form/file.sass +2 -0
- data/node_modules/bulma/sass/form/shared.sass +3 -0
- data/node_modules/bulma/sass/grid/_all.sass +2 -2
- data/node_modules/bulma/sass/grid/columns.sass +93 -84
- data/node_modules/bulma/sass/grid/tiles.sass +3 -1
- data/node_modules/bulma/sass/helpers/_all.sass +9 -9
- data/node_modules/bulma/sass/helpers/color.sass +2 -0
- data/node_modules/bulma/sass/helpers/float.sass +2 -0
- data/node_modules/bulma/sass/helpers/other.sass +3 -0
- data/node_modules/bulma/sass/helpers/position.sass +2 -0
- data/node_modules/bulma/sass/helpers/spacing.sass +1 -1
- data/node_modules/bulma/sass/helpers/typography.sass +5 -0
- data/node_modules/bulma/sass/helpers/visibility.sass +1 -1
- data/node_modules/bulma/sass/layout/_all.sass +3 -3
- data/node_modules/bulma/sass/layout/footer.sass +2 -0
- data/node_modules/bulma/sass/layout/hero.sass +8 -2
- data/node_modules/bulma/sass/layout/section.sass +6 -2
- data/node_modules/bulma/sass/utilities/_all.sass +6 -6
- data/node_modules/bulma/sass/utilities/animations.sass +1 -5
- data/node_modules/bulma/sass/utilities/controls.sass +2 -3
- data/node_modules/bulma/sass/utilities/derived-variables.sass +7 -0
- data/node_modules/bulma/sass/utilities/extends.sass +25 -0
- data/node_modules/bulma/sass/utilities/functions.sass +25 -4
- data/node_modules/bulma/sass/utilities/initial-variables.sass +5 -5
- data/node_modules/bulma/sass/utilities/mixins.sass +18 -23
- data/node_modules/bulma-block-list/.editorconfig +15 -0
- data/node_modules/bulma-block-list/.github/FUNDING.yml +12 -0
- data/node_modules/bulma-block-list/changelog.txt +20 -0
- data/node_modules/bulma-block-list/docs/Gemfile +2 -2
- data/node_modules/bulma-block-list/docs/_config.yml +2 -0
- data/node_modules/bulma-block-list/docs/_data/menu.yaml +5 -1
- data/node_modules/bulma-block-list/docs/_sass/_block-list.scss +30 -2
- data/node_modules/bulma-block-list/docs/index.html +106 -7
- data/node_modules/bulma-block-list/package.json +10 -44
- data/node_modules/bulma-block-list/src/block-list.scss +30 -2
- data/package-lock.json +32 -15
- data/package.json +2 -2
- metadata +20 -67
- data/node_modules/bulma-block-list/node_modules/bulma/CHANGELOG.md +0 -1390
- data/node_modules/bulma-block-list/node_modules/bulma/LICENSE +0 -21
- data/node_modules/bulma-block-list/node_modules/bulma/README.md +0 -130
- data/node_modules/bulma-block-list/node_modules/bulma/bulma.sass +0 -9
- data/node_modules/bulma-block-list/node_modules/bulma/css/bulma.css +0 -10855
- data/node_modules/bulma-block-list/node_modules/bulma/css/bulma.css.map +0 -1
- data/node_modules/bulma-block-list/node_modules/bulma/css/bulma.min.css +0 -1
- data/node_modules/bulma-block-list/node_modules/bulma/package.json +0 -77
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/_all.sass +0 -5
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/generic.sass +0 -142
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/helpers.sass +0 -281
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/minireset.sass +0 -79
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/_all.sass +0 -15
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/breadcrumb.sass +0 -75
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/card.sass +0 -79
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/dropdown.sass +0 -81
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/level.sass +0 -77
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/list.sass +0 -39
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/media.sass +0 -50
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/menu.sass +0 -57
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/message.sass +0 -99
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/modal.sass +0 -113
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/navbar.sass +0 -441
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/pagination.sass +0 -150
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/panel.sass +0 -119
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/tabs.sass +0 -151
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/_all.sass +0 -15
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/box.sass +0 -24
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/button.sass +0 -323
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/container.sass +0 -24
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/content.sass +0 -155
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/form.sass +0 -1
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/icon.sass +0 -21
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/image.sass +0 -71
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/notification.sass +0 -43
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/other.sass +0 -39
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/progress.sass +0 -67
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/table.sass +0 -127
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/tag.sass +0 -128
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/title.sass +0 -70
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/_all.sass +0 -8
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/checkbox-radio.sass +0 -21
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/file.sass +0 -180
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/input-textarea.sass +0 -64
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/select.sass +0 -85
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/shared.sass +0 -55
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/tools.sass +0 -205
- data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/_all.sass +0 -4
- data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/columns.sass +0 -504
- data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/tiles.sass +0 -34
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/_all.sass +0 -5
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/footer.sass +0 -9
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/hero.sass +0 -145
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/section.sass +0 -13
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/_all.sass +0 -8
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/controls.sass +0 -50
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/derived-variables.sass +0 -106
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/functions.sass +0 -110
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/initial-variables.sass +0 -77
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/mixins.sass +0 -261
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61f5f47e2d67eacb651718cd616fb5cc57fe56a6c785bcf03d4efbf716a2a37e
|
4
|
+
data.tar.gz: 444444ad7f41cac6ea53f2846b0741e0cb7ab9c596a1c6e3e82a53c24a36926c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b671bb0e97e049cc04e160987b716e26b82cd7f28de7d6b9546b4f1b5d185111c7ceb0c019fbc64155203fefef48e188b5725dd5cfeeaab2a76c8814e0d893c
|
7
|
+
data.tar.gz: 4b6a9be3e387eb0c2f6182ea57d9f6a45ea4e3006ceb2ff8b56e21d00749ad60327a401ede5bd103328b689eaca04fe71f837ab69b51e9f7e896082691ed5e3c
|
data/README.md
CHANGED
@@ -10,30 +10,7 @@ The theme uses [Alpine.js](https://github.com/alpinejs/alpine) for its interacti
|
|
10
10
|
## Contents
|
11
11
|
|
12
12
|
* [Installation](#installation)
|
13
|
-
* [
|
14
|
-
* [Lang](#lang)
|
15
|
-
* [Pages](#pages)
|
16
|
-
* [Page Hero](#page-hero)
|
17
|
-
* [Table Of Contents](#table-of-contents)
|
18
|
-
* [Posts](#posts)
|
19
|
-
* [Navigation](#navigation)
|
20
|
-
* [Colours and Styles](#colours-and-styles)
|
21
|
-
* [Sidebar Visibility](#sidebar-visibility)
|
22
|
-
* [Menubar](#menubar)
|
23
|
-
* [Tabs](#tabs)
|
24
|
-
* [Notifications](#notifications)
|
25
|
-
* [Tags](#tags)
|
26
|
-
* [Google Analytics](#google-analytics)
|
27
|
-
* [Footer](#footer)
|
28
|
-
* [Products](#products)
|
29
|
-
* [Scripts](#scripts)
|
30
|
-
* [Callouts](#callouts)
|
31
|
-
* [Favicon](#favicon)
|
32
|
-
* [Showcases](#showcases)
|
33
|
-
* [Sponsors](#sponsors)
|
34
|
-
* [Gallery](#gallery)
|
35
|
-
* [Disqus](#disqus)
|
36
|
-
* [Recipe](#recipe)
|
13
|
+
* [Documentation](#documentation)
|
37
14
|
* [Contributing](#contributing)
|
38
15
|
* [Development](#development)
|
39
16
|
* [Licence](#licence)
|
@@ -41,8 +18,6 @@ The theme uses [Alpine.js](https://github.com/alpinejs/alpine) for its interacti
|
|
41
18
|
|
42
19
|
## Installation
|
43
20
|
|
44
|
-
**This theme requires Jekyll 3.9 to be compatible with GitHub Pages.**
|
45
|
-
|
46
21
|
Add this line to your Jekyll site's `Gemfile`:
|
47
22
|
|
48
23
|
```ruby
|
@@ -55,623 +30,24 @@ And add this line to your Jekyll site's `_config.yml`:
|
|
55
30
|
theme: bulma-clean-theme
|
56
31
|
```
|
57
32
|
|
58
|
-
|
59
|
-
|
60
|
-
$ bundle
|
61
|
-
|
62
|
-
Or install it yourself as:
|
63
|
-
|
64
|
-
$ gem install bulma-clean-theme
|
65
|
-
|
66
|
-
## Usage
|
67
|
-
|
68
|
-
### Lang
|
69
|
-
|
70
|
-
The html lang attribute is set to `en` by default but you can override this in the _config.yml file `lang: en`
|
71
|
-
|
72
|
-
### Pages
|
73
|
-
|
74
|
-
Create your pages as individual Markdown files and use `layout: page` for normal pages. Set the page's title and subtitle in the front matter and it will appear in the hero.
|
75
|
-
|
76
|
-
#### Page Hero
|
77
|
-
|
78
|
-
**New in 0.2** - Heros can now display a background image if you provide a `hero_image: /path/to/image.jpg` setting in your page front matter, or in the [defaults](https://jekyllrb.com/docs/configuration/front-matter-defaults/) in your site's `_config.yml`.
|
79
|
-
|
80
|
-
You can also set the height of the hero by providing a Bulma hero height class in your front matter, such as `hero_height: is-fullwidth`. If you do not provide this, it will revert to `is-medium`.
|
81
|
-
|
82
|
-
**New in 0.5.4** - If you would like to add a call to action button in the hero then add `hero_link` and `hero_link_text` to the page's front matter.
|
83
|
-
|
84
|
-
**New in 0.5.7** - If you would like to hide the hero, you can set `hide_hero: true` in the page's front matter.
|
85
|
-
|
86
|
-
**New in 0.7.1** - If you would like to darken the hero so the title stands out more, you can set `hero_darken: true` in the page's front matter. You can overwrite the default background colour by setting the `$hero-darken` sass variable.
|
87
|
-
|
88
|
-
#### Table Of Contents
|
89
|
-
|
90
|
-
**New in 0.5.8** - If you want to display a table of contents (toc) then add `toc: true` to your page's front matter. You can customise the default table of contents title by setting `toc_title: My Custom Title` in the page's front matter.
|
91
|
-
|
92
|
-
**New in 0.10.3** - If you would prefer to display the contents in the menubar at the side of the page, then use `menubar_toc: true` instead of `toc: true`. This will also override the page's `menubar` setting.
|
93
|
-
|
94
|
-
### Posts
|
95
|
-
|
96
|
-
If you want posts, create a `_posts` directory to store your posts as per normal Jekyll usage, with `layout: post`. Next, create a `blog` directory with an index.html file that has `layout: blog`.
|
97
|
-
|
98
|
-
Set `paginate` and `paginate_path` in your site's `_config.yaml` to configure the posts per page and blog pagination path.
|
99
|
-
|
100
|
-
```yaml
|
101
|
-
paginate: 5
|
102
|
-
paginate_path: "/blog/page:num"
|
103
|
-
```
|
104
|
-
|
105
|
-
**New in 0.2** - It will now display an image in the blog page if you set `image: /path/to/image.jpg` in your post's or page's front matter, or in the [defaults](https://jekyllrb.com/docs/configuration/front-matter-defaults/) in your site's `_config.yml`.
|
106
|
-
|
107
|
-
You can also set the height of the hero by providing a Bulma hero height class in your front matter, such as `hero_height: is-fullwidth`. If you do not provide this, it will revert to `is-medium`.
|
108
|
-
|
109
|
-
#### Post Excerpt and Summary
|
110
|
-
|
111
|
-
By default, the blog page and the latest posts will use the automatically generated post excerpt. If you would like to override this you can set the summary in the post's front matter.
|
112
|
-
|
113
|
-
```yaml
|
114
|
-
layout: post
|
115
|
-
title: The post title
|
116
|
-
summary: |-
|
117
|
-
This is the custom summary for the post.
|
118
|
-
|
119
|
-
It can be in **Markdown format** if required.
|
120
|
-
```
|
121
|
-
|
122
|
-
#### Social Share Buttons
|
123
|
-
|
124
|
-
Share buttons will be displayed on your posts unless you hide them by adding `hide_share_buttons: true` to your config file.
|
125
|
-
|
126
|
-
|
127
|
-
### Navigation
|
128
|
-
|
129
|
-
For the top navigation, create a navigation.yml file in the `_data` directory with the following format with the pages you want to include in the top navigation. You can now also add items to a dropdown menu.
|
130
|
-
|
131
|
-
```yaml
|
132
|
-
- name: Page 1
|
133
|
-
link: /page-1/
|
134
|
-
- name: Blog
|
135
|
-
link: /blog/
|
136
|
-
dropdown:
|
137
|
-
- name: Page 2
|
138
|
-
link: /page-2/
|
139
|
-
```
|
140
|
-
|
141
|
-
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 a `permalink: pretty` setting in your `_config.yml`.
|
142
|
-
|
143
|
-
#### Fixed Navbar
|
144
|
-
|
145
|
-
To have a fixed navbar on the top or bottom of your site, you can set `fixed_navbar: top` or `fixed_navbar: bottom` respectively in your
|
146
|
-
`_config.yml`.
|
147
|
-
|
148
|
-
### Colours and Styles
|
149
|
-
|
150
|
-
To overwrite the primary theme colour, set a sass variable in `assets/css/app.scss` before importing `main`.
|
151
|
-
|
152
|
-
```
|
153
|
-
---
|
154
|
-
---
|
155
|
-
$primary: #333333;
|
156
|
-
// Import Main CSS file from theme
|
157
|
-
@import "main";
|
158
|
-
```
|
159
|
-
|
160
|
-
You can overwrite any of the [Bulma initial variables](http://versions.bulma.io/0.7.0/documentation/overview/variables/) in this way as long as they are declared before the `@import "main";`.
|
161
|
-
|
162
|
-
#### Theme Color Meta Tag
|
163
|
-
|
164
|
-
If you want to update the theme color meta tag then set `theme_color: '#333333'` in your `_config.yml` file.
|
165
|
-
|
166
|
-
### Sidebar Visibility
|
167
|
-
|
168
|
-
**New in 0.2** - If you want to show the sidebar with latest posts then set `show_sidebar: true` in the page's frontmatter, or in the [defaults](https://jekyllrb.com/docs/configuration/front-matter-defaults/) in your site's `_config.yml`.
|
169
|
-
|
170
|
-
### Menubar
|
171
|
-
|
172
|
-
**New in 0.3** - The menubar 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.
|
173
|
-
|
174
|
-
```yaml
|
175
|
-
show_sidebar: false
|
176
|
-
menubar: example_menu
|
177
|
-
```
|
178
|
-
|
179
|
-
You will probably want to disable `show_sidebar`. Otherwise there will be little room for the page content.
|
180
|
-
|
181
|
-
#### Creating a menubar data file
|
182
|
-
|
183
|
-
Create a data file in the `_data` directory and use the following format (if using yml).
|
184
|
-
|
185
|
-
```yaml
|
186
|
-
- label: Example Menu
|
187
|
-
items:
|
188
|
-
- name: Home
|
189
|
-
link: /
|
190
|
-
- name: Pages
|
191
|
-
link: #
|
192
|
-
items:
|
193
|
-
- name: Page With Sidebar
|
194
|
-
link: /page-1/
|
195
|
-
- name: Page Without Sidebar
|
196
|
-
link: /page-2/
|
197
|
-
- name: Page With Menubar
|
198
|
-
link: /page-3/
|
199
|
-
- name: Blog
|
200
|
-
link: /blog/
|
201
|
-
```
|
202
|
-
|
203
|
-
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`.
|
204
|
-
|
205
|
-
#### Multiple menus
|
206
|
-
|
207
|
-
You may make multiple menus in the same file, separated by labels.
|
208
|
-
|
209
|
-
```yaml
|
210
|
-
- label: Menu Label
|
211
|
-
items:
|
212
|
-
- name: Example item
|
213
|
-
link: /example-item/
|
214
|
-
- label: Second Menu Label
|
215
|
-
items:
|
216
|
-
- name: Parent Item
|
217
|
-
link: /parent-item/
|
218
|
-
items:
|
219
|
-
- name: Sublink
|
220
|
-
link: /sublink/
|
221
|
-
- name: Sublink 2
|
222
|
-
link: /sublink2/
|
223
|
-
- label: Third Menu Label
|
224
|
-
items:
|
225
|
-
- name: Another example item
|
226
|
-
link: /another-example-item/
|
227
|
-
```
|
228
|
-
|
229
|
-
### Tabs
|
230
|
-
|
231
|
-
**New in 0.4** - `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 front matter.
|
232
|
-
|
233
|
-
```yaml
|
234
|
-
title: Page with tabs
|
235
|
-
subtitle: Demo page with tabs
|
236
|
-
layout: page
|
237
|
-
show_sidebar: false
|
238
|
-
menubar: example_menu
|
239
|
-
tabs: example_tabs
|
240
|
-
```
|
241
|
-
|
242
|
-
Tabs can be used in conjunction with menubar and/or sidebar if you wish.
|
243
|
-
|
244
|
-
#### Creating a tabs data file
|
245
|
-
|
246
|
-
Create a data file in the `_data` directory and use the following format (if using yml).
|
247
|
-
|
248
|
-
```yaml
|
249
|
-
alignment: is-left
|
250
|
-
style: is-boxed
|
251
|
-
size: is-large
|
252
|
-
items:
|
253
|
-
- name: Tabs
|
254
|
-
link: /page-4/
|
255
|
-
icon: fa-smile-wink
|
256
|
-
- name: Sidebar
|
257
|
-
link: /page-1/
|
258
|
-
icon: fa-square
|
259
|
-
- name: No Sidebar
|
260
|
-
link: /page-2/
|
261
|
-
icon: fa-ellipsis-v
|
262
|
-
- name: Menubar
|
263
|
-
link: /page-3/
|
264
|
-
icon: fa-bars
|
265
|
-
```
|
266
|
-
|
267
|
-
#### Settings
|
268
|
-
|
269
|
-
You can control the alignment, style, and size of tabs by using the relevant [Bulma tabs classes](https://bulma.io/documentation/components/tabs/).
|
270
|
-
|
271
|
-
#### Active Tab Highlighting
|
272
|
-
|
273
|
-
It will automatically mark the active tab based on the current page.
|
274
|
-
|
275
|
-
#### Icons
|
276
|
-
|
277
|
-
You can add icons to your tab by passing in the [Font Awesome icon class](https://fontawesome.com/icons?d=gallery). If you don't wish to show icons then simply omit the option from your yaml file.
|
278
|
-
|
279
|
-
### Notifications
|
280
|
-
|
281
|
-
You can include a notification in a page or post using the below include. The message is required but the status defaults to 'is-warning' and the icon defaults to 'fas fa-exclamation-circle', but can be overwritten by setting the values in the includes. The message can also be written in Markdown format.
|
282
|
-
|
283
|
-
```liquid
|
284
|
-
{% include notification.html message="This is the message for the notification" %}
|
285
|
-
```
|
286
|
-
|
287
|
-
#### Dismissible Notifications
|
288
|
-
|
289
|
-
To set a notification to be dismissible, set dismissible to 'true'
|
290
|
-
|
291
|
-
```liquid
|
292
|
-
{% include notification.html
|
293
|
-
message="This notification is dismissable"
|
294
|
-
dismissable="true" %}
|
295
|
-
```
|
296
|
-
|
297
|
-
#### Iconless Notifications
|
298
|
-
|
299
|
-
Omit the icon by setting icon to 'false'
|
300
|
-
|
301
|
-
```liquid
|
302
|
-
{% include notification.html
|
303
|
-
message="This notification does not have an icon."
|
304
|
-
icon="false" %}
|
305
|
-
```
|
306
|
-
|
307
|
-
### Tags
|
308
|
-
|
309
|
-
To include a tag use the following include.
|
310
|
-
|
311
|
-
```liquid
|
312
|
-
{% include tag.html tag="The tag text" %}
|
313
|
-
```
|
314
|
-
|
315
|
-
You can overwrite the default style (is-primary) by passing in the style in the include tag.
|
316
|
-
|
317
|
-
```liquid
|
318
|
-
{% include tag.html tag="The tag text" style="is-light" %}
|
319
|
-
```
|
320
|
-
|
321
|
-
### Google Analytics
|
322
|
-
|
323
|
-
**New in 0.2** - To enable Google Analytics add `google_analytics: UA-xxxxxxxx` to your `_config.yml` replacing the UA-xxxxxxxx with your Google Analytics property.
|
324
|
-
|
325
|
-
### Footer
|
326
|
-
|
327
|
-
**New in 0.4.1** - To add some footer links, create a yaml file in the `_data` directory using the following format.
|
328
|
-
|
329
|
-
```yaml
|
330
|
-
- name: Blog
|
331
|
-
link: /blog/
|
332
|
-
- name: About
|
333
|
-
link: /about/
|
334
|
-
- name: Privacy Policy
|
335
|
-
link: /privacy-policy/
|
336
|
-
```
|
337
|
-
|
338
|
-
Then add the name of your yaml file (without the .yml extension) into the `footer_menu` setting in the `_config.yml`.
|
33
|
+
If you are deploying to GitHub pages, then you can also install the [GitHub Pages gem](https://github.com/github/pages-gem) and use `remote_theme` instead of `theme` in your `_config.yml`. **Note that the GitHub Pages gem requires Jekyll version 3.9.**
|
339
34
|
|
340
35
|
```yaml
|
341
|
-
|
36
|
+
# With GitHub Pages Gem
|
37
|
+
remote_theme: chrisrhymes/bulma-clean-theme
|
342
38
|
```
|
343
39
|
|
344
|
-
|
345
|
-
|
346
|
-
**New in 0.5.2** - If you would like to hide the footer on a particular page then set `hide_footer: true` in the page's frontmatter.
|
347
|
-
|
348
|
-
### Products
|
349
|
-
|
350
|
-
**New in 0.5** - Now you can add simple product pages to your site using collections.
|
351
|
-
|
352
|
-
#### Product pages
|
353
|
-
|
354
|
-
Start by creating a `_products` directory to hold your product pages and create a new page for each product, such as `product1.md`. In the front matter for this page you can set the standard settings, such as your title, subtitle, description (for meta-description), hero_image, as well as the additional product settings such as price, product_code, image, features, and rating.
|
355
|
-
|
356
|
-
```yaml
|
357
|
-
title: Product 1 Name
|
358
|
-
subtitle: Product 1 tagline here
|
359
|
-
description: This is a product description
|
360
|
-
hero_image: /img/hero-img.jpg
|
361
|
-
product_code: ABC124
|
362
|
-
layout: product
|
363
|
-
image: https://via.placeholder.com/640x480
|
364
|
-
price: £1.99 + VAT
|
365
|
-
features:
|
366
|
-
- label: Great addition to any home
|
367
|
-
icon: fa-location-arrow
|
368
|
-
- label: Comes in a range of styles
|
369
|
-
icon: fa-grin-stars
|
370
|
-
- label: Available in multiple sizes
|
371
|
-
icon: fa-fighter-jet
|
372
|
-
rating: 3
|
373
|
-
```
|
374
|
-
|
375
|
-
The text you write for the page content will be displayed as the product description.
|
376
|
-
|
377
|
-
Next, add the following to your `_config.yml` to use collections to process the product pages and output them as individual pages.
|
378
|
-
|
379
|
-
```yaml
|
380
|
-
collections:
|
381
|
-
products:
|
382
|
-
output: true
|
383
|
-
layout: product
|
384
|
-
image: https://via.placeholder.com/800x600
|
385
|
-
show_sidebar: false
|
386
|
-
```
|
387
|
-
|
388
|
-
You can also set default product page values here if you like, such as the layout or image.
|
389
|
-
|
390
|
-
#### Product Reviews
|
391
|
-
|
392
|
-
To add reviews to your product page, create a `reviews` directory in the `_data` directory and add a yaml file with the name of the product_code from the product page, for example `_data/reviews/ABC124.yml`. Create the reviews using the following format:
|
393
|
-
|
394
|
-
```yaml
|
395
|
-
- name: Mr E Xample
|
396
|
-
rating: 4
|
397
|
-
title: Great product, highly recommended
|
398
|
-
date: 2019-01-01
|
399
|
-
avatar: https://bulma.io/images/placeholders/128x128.png
|
400
|
-
description: >
|
401
|
-
The product worked really well. I would recommend this to most people to use. Delivery was quick and reasonable.
|
402
|
-
Would recommend this to my friends.
|
403
|
-
- name: Mrs R E View
|
404
|
-
rating: 5
|
405
|
-
title: Nice, really liked this
|
406
|
-
date: 2019-02-02
|
407
|
-
description: >
|
408
|
-
The product worked exactly as described.
|
409
|
-
```
|
410
|
-
|
411
|
-
If you don't want to display an avatar image then a default user icon will be displayed. If you don't want to display a rating then omit it from the yaml file.
|
412
|
-
|
413
|
-
#### Product Category Page
|
414
|
-
|
415
|
-
To create a page listing your products you will need to create a product category page. Create a page, for example `products.md`, with the `layout: product-category` in the frontmatter. You can set the sort order of the products using `sort: title` to sort by the title, or by any setting in your product pages, such as price, rating or any custom frontmatter tags you wish to set.
|
416
|
-
|
417
|
-
```yaml
|
418
|
-
title: Products
|
419
|
-
subtitle: Check out our range of products
|
420
|
-
layout: product-category
|
421
|
-
show_sidebar: false
|
422
|
-
sort: title
|
423
|
-
```
|
424
|
-
|
425
|
-
### Scripts
|
426
|
-
|
427
|
-
**New in 0.5.2** - There are two new files within the includes directory called `head-scripts.html` and `footer-scripts.html`. These are empty files by default but allow you to add any additional JavaScript to your site, such as the script for AddThis share buttons, in the `<head>` or after the `<footer>` of the page.
|
428
|
-
|
429
|
-
### Callouts
|
430
|
-
|
431
|
-
**New in 0.5.4** - You can now add callouts to a page to make a landing page style layout.
|
432
|
-
|
433
|
-
#### Create a callout data file
|
434
|
-
|
435
|
-
Create a data file following the below format. The style is for classes to set the background colour and sizes you would like to use of the Bulma hero container for the callouts.
|
436
|
-
|
437
|
-
**New in 0.5.7** - You can set the height of the callouts in the data file, such as `is-small`, `is-medium`, or `is-large`. If unset it will be `is-medium` by default.
|
438
|
-
|
439
|
-
The items have six fields, but only the title and subtitle are required. If the icon is a brand icon, such as GitHub in the below example, set `icon_brand: true`.
|
440
|
-
|
441
|
-
```yaml
|
442
|
-
style: is-light
|
443
|
-
height: is-medium
|
444
|
-
items:
|
445
|
-
- title: Example callout 1
|
446
|
-
subtitle: Example subtitle 1
|
447
|
-
icon: fa-github
|
448
|
-
icon_brand: true
|
449
|
-
description: >
|
450
|
-
The example description text goes here and can be multiple lines.
|
451
|
-
|
452
|
-
For example, such as this.
|
453
|
-
call_to_action_name: Call to action 1
|
454
|
-
call_to_action_link: /page-1/
|
455
|
-
```
|
456
|
-
|
457
|
-
#### Set the callouts in the frontmatter
|
458
|
-
|
459
|
-
To display the callouts on your page, add a `callouts` property in the frontmatter and set it to the name of your data file without the extension.
|
460
|
-
|
461
|
-
```yaml
|
462
|
-
layout: page
|
463
|
-
title: Example Landing Page
|
464
|
-
subtitle: This is an example landing page
|
465
|
-
callouts: example_callouts
|
466
|
-
```
|
467
|
-
|
468
|
-
### Favicon
|
469
|
-
|
470
|
-
The default favicon path is `{{ site.baseurl }}/favicon.png` but you can overwrite it in the site's `_config.yml` like this `favicon: /path/to/favicon.png`
|
471
|
-
|
472
|
-
### Showcases
|
473
|
-
|
474
|
-
Showcases allow you to display your work to others using a simple layout.
|
475
|
-
|
476
|
-
#### Creating A Showcase Datafile
|
477
|
-
|
478
|
-
Create a datafile in your site's `_data` directory in the following format. Subtitle, features and tags are not required.
|
479
|
-
|
480
|
-
The description text accepts Markdown and is run through the markdownify filter on the page.
|
481
|
-
|
482
|
-
The `image_ratio` will default to `is-16by9` if it is not defined and accepts the [Bulma image](https://bulma.io/documentation/elements/image/) classes.
|
483
|
-
|
484
|
-
To display GitHub Stars, Forks, and Watchers badges, add your GitHub user and repo name to the `github` setting, such as `chrisrhymes/bulma-clean-theme`.
|
485
|
-
|
486
|
-
To change the default styles of the features, set `features_styles`. This uses the styles from [bulma-block-list](https://www.csrhymes.com/bulma-block-list/) npm package.
|
487
|
-
|
488
|
-
```yaml
|
489
|
-
intro: |-
|
490
|
-
This is some introduction text for the showcases.
|
491
|
-
|
492
|
-
## Example Heading
|
493
|
-
It can convert Markdown format
|
494
|
-
|
495
|
-
items:
|
496
|
-
- title: Example showcase item
|
497
|
-
subtitle: Example subtitle
|
498
|
-
description: |-
|
499
|
-
This is the example description for this item that you are showcasing and has an image, title, description, tags and a link.
|
500
|
-
features:
|
501
|
-
- This is a feature
|
502
|
-
- This is a feature
|
503
|
-
features_styles: is-centered is-outlined is-primary
|
504
|
-
image: https://via.placeholder.com/1024x788
|
505
|
-
image_ratio: is-16by9
|
506
|
-
link: http://www.example.com
|
507
|
-
link_text: View example
|
508
|
-
tags: PHP,CSS,JavaScript
|
509
|
-
github: user/repo-name
|
510
|
-
```
|
511
|
-
|
512
|
-
#### Displaying the Showcase
|
513
|
-
|
514
|
-
Set the showcase in the page's front matter to be the name of the showcase data file without the extension. This gives you the ability to create multiple showcases to be used on different pages.
|
515
|
-
|
516
|
-
```yaml
|
517
|
-
title: Showcase
|
518
|
-
subtitle: An example showcase page
|
519
|
-
layout: page
|
520
|
-
showcase: showcase_example
|
521
|
-
show_sidebar: false
|
522
|
-
```
|
523
|
-
|
524
|
-
### Sponsors
|
525
|
-
|
526
|
-
#### Sponsor link in navbar
|
527
|
-
|
528
|
-
If you have a GitHub sponsors account set up, you can add your username to `gh_sponsor` in the `_config.yml` file and it will display a link to your profile on the right of the navbar.
|
529
|
-
|
530
|
-
```yaml
|
531
|
-
gh_sponsor: chrisrhymes
|
532
|
-
```
|
533
|
-
|
534
|
-
#### Creating a Sponsors Datafile
|
535
|
-
|
536
|
-
If you would like to create a page to thank your sponsors then create a data file, such as my_sponsors.yml file with the following structure:
|
537
|
-
|
538
|
-
```yaml
|
539
|
-
- tier_name: Platinum Sponsors
|
540
|
-
size: large
|
541
|
-
description: |-
|
542
|
-
This is the description for the Platinum Tier
|
543
|
-
sponsors:
|
544
|
-
- name: Dave McDave
|
545
|
-
profile: https://github.com/
|
546
|
-
- name: Sarah Lee-Cheesecake
|
547
|
-
profile: https://github.com/
|
548
|
-
- tier_name: Gold Sponsors
|
549
|
-
description: |-
|
550
|
-
This is the description for the Gold Tier
|
551
|
-
sponsors:
|
552
|
-
- name: Dave McDave
|
553
|
-
profile: https://github.com/
|
554
|
-
```
|
555
|
-
|
556
|
-
The `tier_name` and `description` are required. The `size` is not required, but can be overwritten to 'large' or 'small' to increase or decrease the size of the box and the text size.
|
557
|
-
|
558
|
-
The sponsors require a name, but not a profile link.
|
559
|
-
|
560
|
-
#### Displaying the Sponsors
|
561
|
-
|
562
|
-
To display the sponsors on your page, set the sponsors to the filename without the extension in the page's front matter
|
563
|
-
|
564
|
-
```yaml
|
565
|
-
layout: page
|
566
|
-
title: My Sponsors Page
|
567
|
-
sponsors: my_sponsors
|
568
|
-
```
|
569
|
-
|
570
|
-
### Gallery
|
571
|
-
|
572
|
-
Display a simple image gallery on a page, with image descriptions.
|
573
|
-
|
574
|
-
#### Create an image gallery data file
|
575
|
-
|
576
|
-
Start by creating a gallery data file using the below format, for example `my_gallery.yml`.
|
577
|
-
|
578
|
-
```yaml
|
579
|
-
- title: Image Gallery Title
|
580
|
-
images:
|
581
|
-
- link: https://via.placeholder.com/800x450
|
582
|
-
large_link: https://via.placeholder.com/1200x675
|
583
|
-
alt: The alt text for the image
|
584
|
-
description: |-
|
585
|
-
The image description can be written in **Markdown** if required
|
586
|
-
ratio: is-16by9
|
587
|
-
- link: https://via.placeholder.com/800x600
|
588
|
-
large_link: https://via.placeholder.com/1200x675
|
589
|
-
alt: The alt text for the image
|
590
|
-
description: The image description
|
591
|
-
ratio: is-4by3
|
592
|
-
```
|
593
|
-
|
594
|
-
* If a ratio is not provided it will default to 16 by 9. Use [Bulma image](https://bulma.io/documentation/elements/image/) classes to define the image ratio required.
|
595
|
-
* The description can be plaintext or it can be Markdown if required.
|
596
|
-
* The alt will be used as the image's alt text.
|
597
|
-
* The large_link displays in a modal when the image is clicked.
|
598
|
-
|
599
|
-
#### Displaying the gallery
|
600
|
-
|
601
|
-
In your page's front matter add a gallery with the datafile's filename without the extension.
|
602
|
-
|
603
|
-
```yaml
|
604
|
-
layout: page
|
605
|
-
title: My Image Gallery
|
606
|
-
gallery: my_gallery
|
607
|
-
```
|
608
|
-
|
609
|
-
### Disqus
|
610
|
-
|
611
|
-
Disqus comments are available for posts. To be able to use them, you need to set your disqus shortname in `_config.yml`.
|
612
|
-
```
|
613
|
-
disqus.shortname=<example-com.disqus.com>
|
614
|
-
```
|
615
|
-
|
616
|
-
Need help finding your Disqus Shortname? [See this helpful post by Disqus on the matter.](https://help.disqus.com/en/articles/1717111-what-s-a-shortname)
|
617
|
-
|
618
|
-
Then you need to set your Jekyll environment to production:
|
619
|
-
|
620
|
-
```JEKYLL_ENV=production bundle exec jekyll build```.
|
621
|
-
|
622
|
-
Comments are enabled by default. If you want to disable them, set in the front matter this setting:
|
623
|
-
|
624
|
-
```markdown
|
625
|
-
comments: false
|
626
|
-
```
|
627
|
-
|
628
|
-
### Recipe
|
40
|
+
And then execute:
|
629
41
|
|
630
|
-
|
42
|
+
$ bundle
|
631
43
|
|
632
|
-
|
44
|
+
Or install it yourself as:
|
633
45
|
|
634
|
-
|
46
|
+
$ gem install bulma-clean-theme
|
635
47
|
|
636
|
-
|
48
|
+
## Documentation
|
637
49
|
|
638
|
-
|
639
|
-
layout: recipe
|
640
|
-
title: An Example Recipe Page
|
641
|
-
subtitle: Tastes great and easy to cook
|
642
|
-
author: CS Rhymes
|
643
|
-
date: 2021-03-02
|
644
|
-
show_sidebar: false
|
645
|
-
image: /bulma-clan-theme/img/recipe-example.jpg
|
646
|
-
hero_image: /bulma-clean-theme/img/recipe-example.jpg
|
647
|
-
ingredients:
|
648
|
-
- 1tsp vegetable oil
|
649
|
-
- 2 Carrots, finely diced
|
650
|
-
- 1 Onion, finely dices
|
651
|
-
- 1 Celery stick, finely diced
|
652
|
-
- 2 Cloves of Garlic, crushed
|
653
|
-
- 400g lean Minced Beef
|
654
|
-
- 400g tin of Chopped Tomatoes
|
655
|
-
- 2tbsp Tomato Puree
|
656
|
-
- 300ml Beef Stock
|
657
|
-
- 1tsp Worcestershire Sauce
|
658
|
-
- 2tsp Italian Herbs
|
659
|
-
- Salt and Pepper
|
660
|
-
method:
|
661
|
-
- Heat the vegetable oil in a large pan on a medium heat, then add the carrots, onion and celery and cook for five to ten minutes to soften, stirring occasionally
|
662
|
-
- Add the crushed garlic and cook for 2 more minutes, stiffing occasionally
|
663
|
-
- Add the minced beef to the pan, breaking it up with a wooden spoon and cook until browned off
|
664
|
-
- Add the chopped tomatoes, tomato puree, beef stock, worcestershire sauce and italian herbs and stir. Add a pinch of salt and pepper then stir through
|
665
|
-
- Bring to a gentle simmer and cook for 30 minutes
|
666
|
-
prep_time: PT10M
|
667
|
-
cook_time: PT1H
|
668
|
-
total_time: PT1H10M
|
669
|
-
keywords: recipe,cooking
|
670
|
-
recipie_yield: 4
|
671
|
-
recipe_category: Main course
|
672
|
-
recipe_cuisine: Italian
|
673
|
-
calories: 500 calories
|
674
|
-
```
|
50
|
+
Check out the demo site for the [Documentation](https://www.csrhymes.com/bulma-clean-theme/docs/)
|
675
51
|
|
676
52
|
## Contributing
|
677
53
|
|
data/_includes/head.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<link rel="shortcut icon" type="image/png"
|
7
7
|
{% if site.favicon %} href="{{ site.favicon | relative_url }}" {% else %} href="{{ site.baseurl }}/favicon.png" {% endif %}
|
8
8
|
/>
|
9
|
-
<script src="https://
|
9
|
+
<script defer src="https://unpkg.com/alpinejs@3.9.0/dist/cdn.min.js"></script>
|
10
10
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css">
|
11
11
|
{% unless site.hide_share_buttons %}
|
12
12
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma-social@1/bin/bulma-social.min.css">
|