bulma-clean-theme 0.10.1 → 0.10.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +51 -2
- data/_includes/head.html +2 -2
- data/_includes/header.html +4 -5
- data/_includes/notification.html +16 -9
- data/_includes/showcase.html +1 -1
- data/_includes/tag.html +3 -0
- data/_layouts/default.html +14 -4
- data/_layouts/post.html +1 -1
- data/assets/js/app.js +1 -25
- data/node_modules/bulma-block-list/docs/Gemfile +1 -1
- data/node_modules/bulma-block-list/docs/_sass/_block-list.scss +17 -6
- data/node_modules/bulma-block-list/package.json +10 -10
- data/node_modules/bulma-block-list/src/block-list.scss +17 -6
- data/package-lock.json +3 -3
- data/package.json +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c6a0cc9b71f5dbbadbe42bfa8761dfe20140160bd0f17344d2e1918227ce003
|
4
|
+
data.tar.gz: 2f72832cca44555c479437b4be5d37f922285d4b62e24991f00f3b045f50a038
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da89ce6eb6854b055dfc78b96a1950bced3b6289aa2caa9d7fe85152d90abce0c8921c569ad9b01bd03ff2d9fc2aef944e09a375b128bf979223c9853cdf6b29
|
7
|
+
data.tar.gz: 4fdaa04241cacfe2e0a939a2fe0dfc0b6e9e7ee157238dc1b37d5180cb85d39cc4af117695036502ff60239168f49fa79934ed830fb1f7996ed4ec3892e4d980
|
data/README.md
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
|
6
6
|
This is a clean and simple Jekyll Theme built with the [Bulma](https://bulma.io/) framework, providing a modern looking site to start with.
|
7
7
|
|
8
|
+
The theme uses [Alpine.js](https://github.com/alpinejs/alpine) for it's interactive components, such as mobile navbar and notifications.
|
9
|
+
|
8
10
|
## Contents
|
9
11
|
|
10
12
|
* [Installation](#installation)
|
@@ -19,6 +21,7 @@ This is a clean and simple Jekyll Theme built with the [Bulma](https://bulma.io/
|
|
19
21
|
* [Menubar](#menubar)
|
20
22
|
* [Tabs](#tabs)
|
21
23
|
* [Notifications](#notifications)
|
24
|
+
* [Tags](#tags)
|
22
25
|
* [Google Analytics](#google-analytics)
|
23
26
|
* [Footer](#footer)
|
24
27
|
* [Products](#products)
|
@@ -85,6 +88,9 @@ If you would like to darken the hero so the title stands out more, you can set `
|
|
85
88
|
**New in 0.5.8**
|
86
89
|
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.
|
87
90
|
|
91
|
+
**New in 0.10.3**
|
92
|
+
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
|
+
|
88
94
|
### Posts
|
89
95
|
|
90
96
|
If you want posts, create a `_posts` directory to store your posts as per normal Jekyll usage, with the `layout: post`. Next create a `blog` directory with an index.html file that has `layout: blog`
|
@@ -134,6 +140,11 @@ For the top navigation, create a navigation.yml file in `_data` directory with t
|
|
134
140
|
|
135
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 `permalink: pretty` setting in your `_config.yml`
|
136
142
|
|
143
|
+
#### Fixed Navbar
|
144
|
+
|
145
|
+
To have a fixed navbar, you can set `fixed_navbar: top` or `fixed_navbar: bottom` respectively in your
|
146
|
+
`_config.yml`.
|
147
|
+
|
137
148
|
### Colours and Styles
|
138
149
|
|
139
150
|
To overwrite the primary theme colour, set a sass variable in `assets/css/app.scss` before importing `main`
|
@@ -148,6 +159,10 @@ $primary: #333333;
|
|
148
159
|
|
149
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"'`
|
150
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
|
+
|
151
166
|
### Sidebar Visibility
|
152
167
|
|
153
168
|
**New in 0.2**
|
@@ -277,6 +292,40 @@ You can include a notification in a page or post using the below include. The me
|
|
277
292
|
{% include notification.html message="This is the message for the notification" %}
|
278
293
|
```
|
279
294
|
|
295
|
+
#### Dismissible Notifications
|
296
|
+
|
297
|
+
To set a notification to be dismissible, set dismissible to 'true'
|
298
|
+
|
299
|
+
```liquid
|
300
|
+
{% include notification.html
|
301
|
+
message="This notification is dismissable"
|
302
|
+
dismissable="true" %}
|
303
|
+
```
|
304
|
+
|
305
|
+
#### Iconless Notifications
|
306
|
+
|
307
|
+
Omit the icon by setting icon to 'false'
|
308
|
+
|
309
|
+
```liquid
|
310
|
+
{% include notification.html
|
311
|
+
message="This notification does not have an icon."
|
312
|
+
icon="false" %}
|
313
|
+
```
|
314
|
+
|
315
|
+
### Tags
|
316
|
+
|
317
|
+
To include a tag use the following include.
|
318
|
+
|
319
|
+
```liquid
|
320
|
+
{% include tag.html tag="The tag text" %}
|
321
|
+
```
|
322
|
+
|
323
|
+
You can overwrite the default style (is-primary) by passing in the style in the include tag.
|
324
|
+
|
325
|
+
```liquid
|
326
|
+
{% include tag.html tag="The tag text" style="is-light" %}
|
327
|
+
```
|
328
|
+
|
280
329
|
### Google Analytics
|
281
330
|
|
282
331
|
**New in 0.2**
|
@@ -362,7 +411,7 @@ To add reviews to your product page, create a `reviews` directory in the `_data`
|
|
362
411
|
- name: Mr E Xample
|
363
412
|
rating: 4
|
364
413
|
title: Great product, highly recommended
|
365
|
-
date: 01
|
414
|
+
date: 2019-01-01
|
366
415
|
avatar: https://bulma.io/images/placeholders/128x128.png
|
367
416
|
description: >
|
368
417
|
The product worked really well. I would recommend this to most people to use. Delivery was quick and reasonable.
|
@@ -370,7 +419,7 @@ To add reviews to your product page, create a `reviews` directory in the `_data`
|
|
370
419
|
- name: Mrs R E View
|
371
420
|
rating: 5
|
372
421
|
title: Nice, really liked this
|
373
|
-
date: 02
|
422
|
+
date: 2019-02-02
|
374
423
|
description: >
|
375
424
|
The product worked exactly as described.
|
376
425
|
```
|
data/_includes/head.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
<head>
|
2
2
|
<meta charset="utf-8">
|
3
3
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
4
|
-
<
|
4
|
+
<meta name="theme-color" content={{ site.theme_color | default: '#ffffff' }}>
|
5
5
|
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/app.css">
|
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://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.
|
9
|
+
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.8.0/dist/alpine.min.js" defer></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">
|
data/_includes/header.html
CHANGED
@@ -1,23 +1,22 @@
|
|
1
|
-
|
2
|
-
<nav class="navbar is-primary" >
|
1
|
+
<nav class="navbar is-primary {% if site.fixed_navbar %} is-fixed-{{ site.fixed_navbar }} {% endif %}" x-data="{ openNav: false }">
|
3
2
|
<div class="container">
|
4
3
|
<div class="navbar-brand">
|
5
4
|
<a href="{{ site.baseurl }}/" class="navbar-item">
|
6
5
|
{{ site.title }}
|
7
6
|
</a>
|
8
|
-
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navMenu">
|
7
|
+
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navMenu" :class="{ 'is-active': openNav }" x-on:click="openNav = !openNav">
|
9
8
|
<span aria-hidden="true"></span>
|
10
9
|
<span aria-hidden="true"></span>
|
11
10
|
<span aria-hidden="true"></span>
|
12
11
|
</a>
|
13
12
|
</div>
|
14
|
-
<div class="navbar-menu" id="navMenu">
|
13
|
+
<div class="navbar-menu" id="navMenu" :class="{ 'is-active': openNav }">
|
15
14
|
<div class="navbar-start">
|
16
15
|
<a href="{{ site.baseurl }}/" class="navbar-item {% if page.url == "/" %}is-active{% endif %}">Home</a>
|
17
16
|
{% if site.data.navigation %}
|
18
17
|
{% for item in site.data.navigation %}
|
19
18
|
{% if item.dropdown %}
|
20
|
-
<div class="navbar-item has-dropdown is-hoverable">
|
19
|
+
<div class="navbar-item has-dropdown is-hoverable {% if site.fixed_navbar == 'bottom' %} has-dropdown-up {% endif %}">
|
21
20
|
<a href="{{ item.link | relative_url }}" class="navbar-link {% if item.link == page.url %}is-active{% endif %}">{{ item.name }}</a>
|
22
21
|
<div class="navbar-dropdown">
|
23
22
|
{% for subitem in item.dropdown %}
|
data/_includes/notification.html
CHANGED
@@ -1,10 +1,17 @@
|
|
1
|
-
<div
|
2
|
-
<
|
3
|
-
|
4
|
-
<
|
5
|
-
|
6
|
-
<
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
<div x-data="{visible: true}" markdown="0">
|
2
|
+
<div class="notification {{ include.status | default: 'is-warning' }}" x-show.transition.duration.300ms="visible">
|
3
|
+
{% if include.dismissable %}
|
4
|
+
<button class="delete" x-on:click="visible = false"></button>
|
5
|
+
{% endif %}
|
6
|
+
<article class="media">
|
7
|
+
{% unless include.icon %}
|
8
|
+
<div class="media-left">
|
9
|
+
<span class="icon"><i class="{{ include.icon | default: 'fas fa-exclamation-circle' }} fa-lg"></i></span>
|
10
|
+
</div>
|
11
|
+
{% endunless %}
|
12
|
+
<div class="media-content">
|
13
|
+
<div class="content">{{ include.message | markdownify }}</div>
|
14
|
+
</div>
|
15
|
+
</article>
|
16
|
+
</div>
|
10
17
|
</div>
|
data/_includes/showcase.html
CHANGED
data/_includes/tag.html
ADDED
data/_layouts/default.html
CHANGED
@@ -1,12 +1,17 @@
|
|
1
|
-
{% if page.menubar
|
1
|
+
{% if page.menubar or page.menubar_toc %}
|
2
|
+
{% assign has_left_sidebar = true %}
|
3
|
+
{% endif %}
|
4
|
+
|
5
|
+
{% if page.show_sidebar and has_left_sidebar %}
|
2
6
|
{% assign content_width = 'is-4' %}
|
3
|
-
{% elsif page.
|
7
|
+
{% elsif page.show_sidebar or has_left_sidebar %}
|
4
8
|
{% assign content_width = 'is-8' %}
|
5
9
|
{% else %}
|
6
10
|
{% assign content_width = 'is-12' %}
|
7
11
|
{% endif %}
|
12
|
+
|
8
13
|
<!DOCTYPE html>
|
9
|
-
<html>
|
14
|
+
<html {% if site.fixed_navbar %} class="has-navbar-fixed-{{ site.fixed_navbar }}" {% endif %}>
|
10
15
|
{% include head.html %}
|
11
16
|
<body>
|
12
17
|
{% include header.html %}
|
@@ -17,7 +22,12 @@
|
|
17
22
|
<section class="section">
|
18
23
|
<div class="container">
|
19
24
|
<div class="columns">
|
20
|
-
{% if page.
|
25
|
+
{% if page.menubar_toc %}
|
26
|
+
<div class="column is-4-desktop is-4-tablet">
|
27
|
+
{% assign contentsTitle = page.toc_title | default: 'Contents' %}
|
28
|
+
{% include toc.html html=content class='menu-list' h_min=2 h_max=3 contents_title=contentsTitle %}
|
29
|
+
</div>
|
30
|
+
{% elsif page.menubar %}
|
21
31
|
<div class="column is-4-desktop is-4-tablet">
|
22
32
|
{% include menubar.html %}
|
23
33
|
</div>
|
data/_layouts/post.html
CHANGED
data/assets/js/app.js
CHANGED
@@ -1,25 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
// Get all "navbar-burger" elements
|
4
|
-
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
|
5
|
-
|
6
|
-
// Check if there are any navbar burgers
|
7
|
-
if ($navbarBurgers.length > 0) {
|
8
|
-
|
9
|
-
// Add a click event on each of them
|
10
|
-
$navbarBurgers.forEach( el => {
|
11
|
-
el.addEventListener('click', () => {
|
12
|
-
|
13
|
-
// Get the target from the "data-target" attribute
|
14
|
-
const target = el.dataset.target;
|
15
|
-
const $target = document.getElementById(target);
|
16
|
-
|
17
|
-
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
|
18
|
-
el.classList.toggle('is-active');
|
19
|
-
$target.classList.toggle('is-active');
|
20
|
-
|
21
|
-
});
|
22
|
-
});
|
23
|
-
}
|
24
|
-
|
25
|
-
});
|
1
|
+
//
|
@@ -61,6 +61,12 @@ $block-list-highlight-width: 5px !default;
|
|
61
61
|
border-left: $block-list-highlight-width $dark solid;
|
62
62
|
}
|
63
63
|
|
64
|
+
@mixin outlined($color) {
|
65
|
+
background: transparent;
|
66
|
+
color: $color;
|
67
|
+
border: 1px solid $color;
|
68
|
+
}
|
69
|
+
|
64
70
|
@each $name, $pair in $colors {
|
65
71
|
|
66
72
|
$color: nth($pair, 1);
|
@@ -71,20 +77,25 @@ $block-list-highlight-width: 5px !default;
|
|
71
77
|
background: $color;
|
72
78
|
color: $color-invert;
|
73
79
|
}
|
80
|
+
|
81
|
+
li.is-#{$name}.is-outlined {
|
82
|
+
@include outlined($color);
|
83
|
+
}
|
84
|
+
|
85
|
+
li.is-#{$name}.is-highlighted {
|
86
|
+
@include outlined($color);
|
87
|
+
border-left: $block-list-highlight-width $color solid;
|
88
|
+
}
|
74
89
|
|
75
90
|
&.is-#{$name} {
|
76
91
|
li.is-outlined,
|
77
92
|
&.is-outlined > li {
|
78
|
-
|
79
|
-
color: $color;
|
80
|
-
border: 1px solid $color;
|
93
|
+
@include outlined($color);
|
81
94
|
}
|
82
95
|
|
83
96
|
li.is-highlighted,
|
84
97
|
&.is-highlighted > li {
|
85
|
-
|
86
|
-
color: $color;
|
87
|
-
border: 1px solid $color;
|
98
|
+
@include outlined($color);
|
88
99
|
border-left: $block-list-highlight-width $color solid;
|
89
100
|
}
|
90
101
|
}
|
@@ -1,26 +1,26 @@
|
|
1
1
|
{
|
2
|
-
"_from": "bulma-block-list@^0.4",
|
3
|
-
"_id": "bulma-block-list@0.4.
|
2
|
+
"_from": "bulma-block-list@^0.4.1",
|
3
|
+
"_id": "bulma-block-list@0.4.1",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
5
|
+
"_integrity": "sha512-rNMgnzX/e1MnsKXpzPuRl2kNN+xxEBqe00idycD8Wt7xg0dHlBi4xctN0roW9cFlRyvxW5zJwSufPgavaJpghQ==",
|
6
6
|
"_location": "/bulma-block-list",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
9
9
|
"type": "range",
|
10
10
|
"registry": true,
|
11
|
-
"raw": "bulma-block-list@^0.4",
|
11
|
+
"raw": "bulma-block-list@^0.4.1",
|
12
12
|
"name": "bulma-block-list",
|
13
13
|
"escapedName": "bulma-block-list",
|
14
|
-
"rawSpec": "^0.4",
|
14
|
+
"rawSpec": "^0.4.1",
|
15
15
|
"saveSpec": null,
|
16
|
-
"fetchSpec": "^0.4"
|
16
|
+
"fetchSpec": "^0.4.1"
|
17
17
|
},
|
18
18
|
"_requiredBy": [
|
19
19
|
"/"
|
20
20
|
],
|
21
|
-
"_resolved": "https://registry.npmjs.org/bulma-block-list/-/bulma-block-list-0.4.
|
22
|
-
"_shasum": "
|
23
|
-
"_spec": "bulma-block-list@^0.4",
|
21
|
+
"_resolved": "https://registry.npmjs.org/bulma-block-list/-/bulma-block-list-0.4.1.tgz",
|
22
|
+
"_shasum": "24fc9eabb216694885bacbd5cff87e8e0b6a7937",
|
23
|
+
"_spec": "bulma-block-list@^0.4.1",
|
24
24
|
"_where": "/Users/chrisrhymes/Code/bulma-clean-theme",
|
25
25
|
"author": {
|
26
26
|
"name": "chrisrhymes"
|
@@ -52,5 +52,5 @@
|
|
52
52
|
"css-watch": "npm run css-build -- --watch",
|
53
53
|
"start": "npm run css-watch"
|
54
54
|
},
|
55
|
-
"version": "0.4.
|
55
|
+
"version": "0.4.1"
|
56
56
|
}
|
@@ -61,6 +61,12 @@ $block-list-highlight-width: 5px !default;
|
|
61
61
|
border-left: $block-list-highlight-width $dark solid;
|
62
62
|
}
|
63
63
|
|
64
|
+
@mixin outlined($color) {
|
65
|
+
background: transparent;
|
66
|
+
color: $color;
|
67
|
+
border: 1px solid $color;
|
68
|
+
}
|
69
|
+
|
64
70
|
@each $name, $pair in $colors {
|
65
71
|
|
66
72
|
$color: nth($pair, 1);
|
@@ -71,20 +77,25 @@ $block-list-highlight-width: 5px !default;
|
|
71
77
|
background: $color;
|
72
78
|
color: $color-invert;
|
73
79
|
}
|
80
|
+
|
81
|
+
li.is-#{$name}.is-outlined {
|
82
|
+
@include outlined($color);
|
83
|
+
}
|
84
|
+
|
85
|
+
li.is-#{$name}.is-highlighted {
|
86
|
+
@include outlined($color);
|
87
|
+
border-left: $block-list-highlight-width $color solid;
|
88
|
+
}
|
74
89
|
|
75
90
|
&.is-#{$name} {
|
76
91
|
li.is-outlined,
|
77
92
|
&.is-outlined > li {
|
78
|
-
|
79
|
-
color: $color;
|
80
|
-
border: 1px solid $color;
|
93
|
+
@include outlined($color);
|
81
94
|
}
|
82
95
|
|
83
96
|
li.is-highlighted,
|
84
97
|
&.is-highlighted > li {
|
85
|
-
|
86
|
-
color: $color;
|
87
|
-
border: 1px solid $color;
|
98
|
+
@include outlined($color);
|
88
99
|
border-left: $block-list-highlight-width $color solid;
|
89
100
|
}
|
90
101
|
}
|
data/package-lock.json
CHANGED
@@ -10,9 +10,9 @@
|
|
10
10
|
"integrity": "sha512-LSF69OumXg2HSKl2+rN0/OEXJy7WFEb681wtBlNS/ulJYR27J3rORHibdXZ6GVb/vyUzzYK/Arjyh56wjbFedA=="
|
11
11
|
},
|
12
12
|
"bulma-block-list": {
|
13
|
-
"version": "0.4.
|
14
|
-
"resolved": "https://registry.npmjs.org/bulma-block-list/-/bulma-block-list-0.4.
|
15
|
-
"integrity": "sha512-
|
13
|
+
"version": "0.4.1",
|
14
|
+
"resolved": "https://registry.npmjs.org/bulma-block-list/-/bulma-block-list-0.4.1.tgz",
|
15
|
+
"integrity": "sha512-rNMgnzX/e1MnsKXpzPuRl2kNN+xxEBqe00idycD8Wt7xg0dHlBi4xctN0roW9cFlRyvxW5zJwSufPgavaJpghQ==",
|
16
16
|
"requires": {
|
17
17
|
"bulma": "^0.8.0"
|
18
18
|
},
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bulma-clean-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chrisrhymes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -154,6 +154,7 @@ files:
|
|
154
154
|
- _includes/sponsors.html
|
155
155
|
- _includes/subscribe.html
|
156
156
|
- _includes/tabs.html
|
157
|
+
- _includes/tag.html
|
157
158
|
- _includes/toc.html
|
158
159
|
- _includes/youtube.html
|
159
160
|
- _layouts/blog.html
|