bulma-clean-theme 0.10 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -0
- data/_includes/callouts.html +1 -1
- data/_includes/notification.html +10 -0
- data/_includes/post-card.html +5 -1
- data/_posts/2020-10-17-post-with-summary.md +23 -0
- data/_sass/_layout.scss +8 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d810060e0eec98758c417783dd55371be2a45bb153181abd275d5dd5c652b237
|
4
|
+
data.tar.gz: 7dc31995e73b1924ebeca83c2a7ebb3cce43ca6463be9c39539f2b453c64a4d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c853f3b596c4b0a8658251a52e9dd601b4f04c7910cd1b7705f69de0282354ce7a70e805c70ccbd9da255e80f0b67a037205843346b534ea0a6f7cde4e432523
|
7
|
+
data.tar.gz: 168f4189d2ef90b0cacc141e1b96a969ae9ccc87c0533c3c474557024a3cf274819a5dfafb55c5871d6fcd0a3f24bb9a8d8e1bd2d728a7ac6abfcf3de251aae9
|
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)
|
@@ -99,6 +100,19 @@ paginate_path: "/blog/page:num"
|
|
99
100
|
|
100
101
|
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
102
|
|
103
|
+
#### Post Excerpt and Summary
|
104
|
+
|
105
|
+
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.
|
106
|
+
|
107
|
+
```yaml
|
108
|
+
layout: post
|
109
|
+
title: The post title
|
110
|
+
summary: |-
|
111
|
+
This is the custom summary for the post.
|
112
|
+
|
113
|
+
It can be in **markdown format** if required.
|
114
|
+
```
|
115
|
+
|
102
116
|
#### Social Share Buttons
|
103
117
|
|
104
118
|
Share buttons will be displayed on your posts unless you hide them by adding `hide_share_buttons: true` to your config file.
|
@@ -255,6 +269,13 @@ You can add icons to your tab by passing in the [Font Awesome icon class](https:
|
|
255
269
|
|
256
270
|
If you don't wish to show icons then simply omit the option from your yaml file.
|
257
271
|
|
272
|
+
### Notifications
|
273
|
+
|
274
|
+
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.
|
275
|
+
|
276
|
+
```liquid
|
277
|
+
{% include notification.html message="This is the message for the notification" %}
|
278
|
+
```
|
258
279
|
|
259
280
|
### Google Analytics
|
260
281
|
|
data/_includes/callouts.html
CHANGED
@@ -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
|
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 %}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<div class="notification {{ include.status | default: 'is-warning' }}" markdown="0">
|
2
|
+
<article class="media">
|
3
|
+
<div class="media-left">
|
4
|
+
<span class="icon"><i class="{{ include.icon | default: 'fas fa-exclamation-circle' }} fa-lg"></i></span>
|
5
|
+
</div>
|
6
|
+
<div class="media-content">
|
7
|
+
<div class="content">{{ include.message | markdownify }}</div>
|
8
|
+
</div>
|
9
|
+
</article>
|
10
|
+
</div>
|
data/_includes/post-card.html
CHANGED
@@ -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
|
-
|
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>
|
@@ -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
|
+
```
|
data/_sass/_layout.scss
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:
|
4
|
+
version: 0.10.1
|
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-
|
11
|
+
date: 2020-10-28 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
|