bulma-clean-theme 0.10 → 0.10.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3884555bf86aec5dd0d7d53b8d9162c1bb9096b8f5bb0bec0cce40a2b65376ce
4
- data.tar.gz: 8275db967bd7fc423991809dc73048d3140169d2824f440e1126c0098c175d8d
3
+ metadata.gz: 61ce44ce708ac22899498a1a55761fe28063462f30616cb982794fa32f6a5eb3
4
+ data.tar.gz: 39ee6467f173ed65617802584e8a3c88187ce64fe38ddbc955c11157b7161bac
5
5
  SHA512:
6
- metadata.gz: e5f973241733a9d1251aa6c155b512ca78bb01bd08610b3a0a5918dccb93567e070bad20c9c3cfd1793e4fee40b43f719f85183a77e14369a8fa6ccce6afdbd0
7
- data.tar.gz: 95080b3cfad4366771a37156196f7aedc3024a2362856f878afcbc8bd75e8710bb865606767852c6c00869371105eebc946712946605bccc7f8f1d9b2a6142ad
6
+ metadata.gz: 57aeb00974e6d06908ccddba1f99634aec698c3ed5c071d3bdc7458eaad64e55738a2eca025a952a478a70fca64ebfe058fa1de03dfbc366f5bcb71e13613ccb
7
+ data.tar.gz: db1e0da5a6595a08c6829ae9deacf778866574853fdfeb85a8263c279e1cf9832016243a58bb1be04f6551f1c03fe80c4dcaada22edcfcaebd2d04b1da07b087
data/README.md CHANGED
@@ -18,6 +18,7 @@ This is a clean and simple Jekyll Theme built with the [Bulma](https://bulma.io/
18
18
  * [Sidebar Visibility](#sidebar-visibility)
19
19
  * [Menubar](#menubar)
20
20
  * [Tabs](#tabs)
21
+ * [Notifications](#notifications)
21
22
  * [Google Analytics](#google-analytics)
22
23
  * [Footer](#footer)
23
24
  * [Products](#products)
@@ -84,6 +85,9 @@ If you would like to darken the hero so the title stands out more, you can set `
84
85
  **New in 0.5.8**
85
86
  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.
86
87
 
88
+ **New in 0.10.3**
89
+ 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.
90
+
87
91
  ### Posts
88
92
 
89
93
  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`
@@ -99,6 +103,19 @@ paginate_path: "/blog/page:num"
99
103
 
100
104
  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
101
105
 
106
+ #### Post Excerpt and Summary
107
+
108
+ 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.
109
+
110
+ ```yaml
111
+ layout: post
112
+ title: The post title
113
+ summary: |-
114
+ This is the custom summary for the post.
115
+
116
+ It can be in **markdown format** if required.
117
+ ```
118
+
102
119
  #### Social Share Buttons
103
120
 
104
121
  Share buttons will be displayed on your posts unless you hide them by adding `hide_share_buttons: true` to your config file.
@@ -120,6 +137,11 @@ For the top navigation, create a navigation.yml file in `_data` directory with t
120
137
 
121
138
  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`
122
139
 
140
+ #### Fixed Navbar
141
+
142
+ To have a fixed navbar, you can set `fixed_navbar: top` or `fixed_navbar: bottom` respectively in your
143
+ `_config.yml`.
144
+
123
145
  ### Colours and Styles
124
146
 
125
147
  To overwrite the primary theme colour, set a sass variable in `assets/css/app.scss` before importing `main`
@@ -134,6 +156,10 @@ $primary: #333333;
134
156
 
135
157
  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"'`
136
158
 
159
+ #### Theme Color Meta Tag
160
+
161
+ If you want to update the theme color meta tag then set `theme_color: '#333333'` in your `_config.yml` file.
162
+
137
163
  ### Sidebar Visibility
138
164
 
139
165
  **New in 0.2**
@@ -255,6 +281,33 @@ You can add icons to your tab by passing in the [Font Awesome icon class](https:
255
281
 
256
282
  If you don't wish to show icons then simply omit the option from your yaml file.
257
283
 
284
+ ### Notifications
285
+
286
+ 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.
287
+
288
+ ```liquid
289
+ {% include notification.html message="This is the message for the notification" %}
290
+ ```
291
+
292
+ #### Dismissible Notifications
293
+
294
+ To set a notification to be dismissible, set dismissible to 'true'
295
+
296
+ ```liquid
297
+ {% include notification.html
298
+ message="This notification is dismissable"
299
+ dismissable="true" %}
300
+ ```
301
+
302
+ #### Iconless Notifications
303
+
304
+ Omit the icon by setting icon to 'false'
305
+
306
+ ```liquid
307
+ {% include notification.html
308
+ message="This notification does not have an icon."
309
+ icon="false" %}
310
+ ```
258
311
 
259
312
  ### Google Analytics
260
313
 
@@ -341,7 +394,7 @@ To add reviews to your product page, create a `reviews` directory in the `_data`
341
394
  - name: Mr E Xample
342
395
  rating: 4
343
396
  title: Great product, highly recommended
344
- date: 01/01/2019
397
+ date: 2019-01-01
345
398
  avatar: https://bulma.io/images/placeholders/128x128.png
346
399
  description: >
347
400
  The product worked really well. I would recommend this to most people to use. Delivery was quick and reasonable.
@@ -349,7 +402,7 @@ To add reviews to your product page, create a `reviews` directory in the `_data`
349
402
  - name: Mrs R E View
350
403
  rating: 5
351
404
  title: Nice, really liked this
352
- date: 02/02/2019
405
+ date: 2019-02-02
353
406
  description: >
354
407
  The product worked exactly as described.
355
408
  ```
@@ -7,7 +7,7 @@
7
7
  {% for callout in callouts.items %}
8
8
  <div class="column is-4 has-text-centered">
9
9
  {% if callout.icon %}
10
- <div class="icon is-large">
10
+ <div class="icon callout-icon">
11
11
  {% if callout.icon_brand %}
12
12
  <i class="fab {{ callout.icon }} fa-4x"></i>
13
13
  {% else %}
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <meta charset="utf-8">
3
3
  <meta name="viewport" content="width=device-width, initial-scale=1">
4
- <title>{{ page.title }} - {{ site.title }}</title>
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 %}
@@ -1,5 +1,4 @@
1
-
2
- <nav class="navbar is-primary" >
1
+ <nav class="navbar is-primary {% if site.fixed_navbar %} is-fixed-{{ site.fixed_navbar }} {% endif %}">
3
2
  <div class="container">
4
3
  <div class="navbar-brand">
5
4
  <a href="{{ site.baseurl }}/" class="navbar-item">
@@ -17,7 +16,7 @@
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 %}
@@ -0,0 +1,17 @@
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>
17
+ </div>
@@ -13,7 +13,11 @@
13
13
  {% if post.image %}
14
14
  <a class="title is-4" href="{{ site.baseurl }}{{ post.url }}">{{ post.title}}</a>
15
15
  {% endif %}
16
- <p>{{ post.excerpt }}</p>
16
+ {% if post.summary %}
17
+ {{ post.summary | markdownify }}
18
+ {% else %}
19
+ <p>{{ post.excerpt }}</p>
20
+ {% endif %}
17
21
  </div>
18
22
  <div class="has-text-centered">
19
23
  <a href="{{ site.baseurl }}{{ post.url }}" class="button is-primary">Read more</a>
@@ -1,12 +1,17 @@
1
- {% if page.menubar and page.show_sidebar %}
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.menubar or page.show_sidebar %}
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.menubar %}
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>
@@ -0,0 +1,23 @@
1
+ ---
2
+ layout: post
3
+ title: Example post with a summary
4
+ summary: |-
5
+ This is the custom summary for the post.
6
+
7
+ It can be in **markdown format** if required.
8
+ ---
9
+
10
+ This is the text for the post. It won't be used as the excerpt as it will use the custom summary set in the post instead.
11
+
12
+ If the summary is not set it will use the default excerpt generated by Jekyll.
13
+
14
+ To use a custom summary, set the `summary` in the post's front matter.
15
+
16
+ ```yaml
17
+ layout: post
18
+ title: Example post with a summary
19
+ summary: |-
20
+ This is the custom summary for the post.
21
+
22
+ It can be in **markdown format** if required.
23
+ ```
@@ -26,4 +26,12 @@ div.highlight {
26
26
  figure {
27
27
  margin: 0;
28
28
  }
29
+ }
30
+
31
+ .callout {
32
+ &-icon {
33
+ width: 4rem;
34
+ height: 4rem;
35
+ margin-bottom: 0.75rem;
36
+ }
29
37
  }
@@ -21,5 +21,5 @@ document.addEventListener('DOMContentLoaded', () => {
21
21
  });
22
22
  });
23
23
  }
24
-
24
+
25
25
  });
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
- gem "bulma-clean-theme", '0.8'
2
+ gem "bulma-clean-theme", '0.10.3'
3
3
  gem 'github-pages', group: :jekyll_plugins
@@ -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
- background: transparent;
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
- background: transparent;
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.0",
2
+ "_from": "bulma-block-list@^0.4.1",
3
+ "_id": "bulma-block-list@0.4.1",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-N1jFSWXKmZrtETmbAVuy/q7TA0eb6VuyeaM8YsOue43Es55CPWshbK1vplJ+BYoxaacibs9paNhQs0y35qU+dQ==",
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.0.tgz",
22
- "_shasum": "4f70d2bdeb1dbaa730c1f7cf75adcd6013b5703b",
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.0"
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
- background: transparent;
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
- background: transparent;
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
  }
@@ -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.0",
14
- "resolved": "https://registry.npmjs.org/bulma-block-list/-/bulma-block-list-0.4.0.tgz",
15
- "integrity": "sha512-N1jFSWXKmZrtETmbAVuy/q7TA0eb6VuyeaM8YsOue43Es55CPWshbK1vplJ+BYoxaacibs9paNhQs0y35qU+dQ==",
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
  },
@@ -11,6 +11,6 @@
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
13
  "bulma": "^0.9.1",
14
- "bulma-block-list": "^0.4"
14
+ "bulma-block-list": "^0.4.1"
15
15
  }
16
16
  }
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.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - chrisrhymes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-09 00:00:00.000000000 Z
11
+ date: 2021-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -144,6 +144,7 @@ files:
144
144
  - _includes/image-modal.html
145
145
  - _includes/latest-posts.html
146
146
  - _includes/menubar.html
147
+ - _includes/notification.html
147
148
  - _includes/pagination.html
148
149
  - _includes/post-card.html
149
150
  - _includes/rating.html
@@ -165,6 +166,7 @@ files:
165
166
  - _posts/2019-02-09-getting-started-with-bulma-clean-theme.markdown
166
167
  - _posts/2019-07-23-introducing-some-new-layouts-to-bulma-clean-theme.markdown
167
168
  - _posts/2020-05-08-creating-a-docs-site-with-bulma-clean-theme.markdown
169
+ - _posts/2020-10-17-post-with-summary.md
168
170
  - _sass/_layout.scss
169
171
  - _sass/_main.scss
170
172
  - _sass/_showcase.scss