bulma-clean-theme 0.5.8 → 0.6

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: e069b6f5f4713ef53a9c89a4e07354aac95fca301a373de6093198b775d29f18
4
- data.tar.gz: dde5ae8ba40555625f418a87cfe97f4cf50a025883027edae3c120899b3e1eea
3
+ metadata.gz: e5cc9861987c14401d52c7673310e32769691eab6c94d2dfbe5cc4cd81533063
4
+ data.tar.gz: 81d8d92d6e0108d9cf0c7463a0b911bcd99893839ad08373f82a77bf022263f0
5
5
  SHA512:
6
- metadata.gz: 1dac119dc60f87b25792e3c8684f37ffb35e91cb8ef19e0ac74be6205a7ab9b31533d1462241a1849ca75cd9139d924bc3f5dc00557d324c78460a4aa5fd6317
7
- data.tar.gz: 185cd417afa785a674734f415aec7f7f352c2a09ba20ac8d6fd321b5029f94ce82fb1eac222e8006eb6087c8c1dad18c643a38a931ee32ca12eade09c4033e3e
6
+ metadata.gz: 03c3570fb2a58d5f918a968531a8382d6c262c522626755acb6516179ea90a77fadb982cb7fa12669115986b28c4e4042289e7b1124f0a032bea00b9e9da6e94
7
+ data.tar.gz: 3d037f5529f0156239de5006b2ab4ad399fef1cbec0563adccd6c8543c42c2eed906cc689123b8c58838c9d0a5cc3cb6ab62e0f0738e956f559075d3b7e7b7e6
data/README.md CHANGED
@@ -24,6 +24,7 @@ This is a clean and simple Jekyll Theme built with the [Bulma](https://bulma.io/
24
24
  * [Scripts](#scripts)
25
25
  * [Callouts](#callouts)
26
26
  * [Favicon](#favicon)
27
+ * [Showcases](#showcases)
27
28
  * [Contributing](#contributing)
28
29
  * [Development](#development)
29
30
  * [Licence](#licence)
@@ -79,6 +80,13 @@ If you want to display a table of contents (toc) then add `toc: true` to your pa
79
80
 
80
81
  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`
81
82
 
83
+ Set the paginate and the paginate_path up in the `_config.yaml` to configure the posts per page and the blog pagination path.
84
+
85
+ ```yaml
86
+ paginate: 5
87
+ paginate_path: "/blog/page:num"
88
+ ```
89
+
82
90
  **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 sites `_config.yml`
83
91
 
84
92
  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
@@ -398,6 +406,52 @@ callouts: example_callouts
398
406
 
399
407
  The default favicon path is `{{ site.baseurl }}/favicon.png` but you can overwrite it in the sites `_config.yml` like this `favicon: /path/to/favicon.png`
400
408
 
409
+ ### Showcases
410
+
411
+ Showcases allow you to display your work to others using a simple layout.
412
+
413
+ #### Creating A Showcase Datafile
414
+
415
+ Create a datafile in your sites `_data` directory in the following format. Subtitle, features and tags are not required.
416
+
417
+ The description text accepts markdown and is run through the markdownify filter on the page.
418
+
419
+ 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.
420
+
421
+ ```yaml
422
+ intro: |-
423
+ This is some introduction text for the showcases.
424
+
425
+ ## Example Heading
426
+ It can convert markdown format
427
+
428
+ items:
429
+ - title: Example showcase item
430
+ subtitle: Example subtitle
431
+ description: |-
432
+ This is the example description for this item that you are showcasing and has an image, title, description, tags and a link.
433
+ features:
434
+ - This is a feature
435
+ - This is a feature
436
+ image: https://via.placeholder.com/1024x788
437
+ image_ratio: is-16by9
438
+ link: http://www.example.com
439
+ link_text: View example
440
+ tags: PHP,CSS,JavaScript
441
+ ```
442
+
443
+ #### Displaying the Showcase
444
+
445
+ 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.
446
+
447
+ ```yaml
448
+ title: Showcase
449
+ subtitle: An example showcase page
450
+ layout: page
451
+ showcase: showcase_example
452
+ show_sidebar: false
453
+ ```
454
+
401
455
  ## Contributing
402
456
 
403
457
  Bug reports and pull requests are welcome on GitHub at https://github.com/chrisrhymes/bulma-clean-theme. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
@@ -0,0 +1,48 @@
1
+ {% if page.showcase %}
2
+ {% assign showcase = site.data.[page.showcase] %}
3
+
4
+ <div class="content">
5
+ <p>{{ showcase.intro | markdownify }}</p>
6
+ </div>
7
+
8
+ {% for showcase in showcase.items %}
9
+ <section class="showcase">
10
+ <figure class="image {% if showcase.image_ratio %} {{ showcase.image_ratio }} {% else %} is-16by9 {% endif %}">
11
+ <img src="{{ showcase.image | prepend: site.baseurl }}" />
12
+ </figure>
13
+ <div class="showcase-content">
14
+ <div class="columns is-centered">
15
+ <div class="column is-8-desktop is-12-tablet">
16
+ <p class="title">{{ showcase.title }}</p>
17
+ <p class="subtitle">{{ showcase.subtitle }}</p>
18
+ <div class="content">
19
+ <p>{{ showcase.description | markdownify }}</p>
20
+
21
+ {% if showcase.features %}
22
+ <div class="showcase-features">
23
+ {% for feature in showcase.features %}
24
+ <div class="showcase-feature">{{ feature }}</div>
25
+ {% endfor %}
26
+ </div>
27
+ {% endif %}
28
+ </div>
29
+
30
+ {% if showcase.tags %}
31
+ {% assign tags = showcase.tags | split: "," %}
32
+ <div class="tags is-centered">
33
+ {% for tag in tags %}
34
+ <div class="tag is-dark">{{ tag }}</div>
35
+ {% endfor %}
36
+ </div>
37
+ {% endif %}
38
+
39
+ <a href="{{ showcase.link }}" class="button is-primary">
40
+ {{ showcase.link_text }}
41
+ </a>
42
+ </div>
43
+ </div>
44
+
45
+ </div>
46
+ </section>
47
+ {% endfor %}
48
+ {% endif %}
@@ -24,6 +24,7 @@
24
24
  {% endif %}
25
25
  <div class="column {{ content_width }}">
26
26
  {% include tabs.html %}
27
+ {% include showcase.html %}
27
28
  {{ content }}
28
29
  </div>
29
30
  {% if site.posts and page.show_sidebar %}
@@ -9,4 +9,5 @@ $tabs-link-active-border-bottom-color: $primary;
9
9
 
10
10
  @import "../node_modules/bulma/bulma.sass";
11
11
  @import "layout";
12
- @import "syntax";
12
+ @import "syntax";
13
+ @import "showcase";
@@ -0,0 +1,15 @@
1
+ .showcase {
2
+ margin-bottom: 3rem;
3
+ box-shadow: $box-shadow;
4
+
5
+ &-content {
6
+ padding: 1.5rem;
7
+ text-align: center;
8
+ }
9
+
10
+ &-feature {
11
+ background: $light;
12
+ margin-bottom: 0.2rem;
13
+ padding: 0.5rem;
14
+ }
15
+ }
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.5.8
4
+ version: '0.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - chrisrhymes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-19 00:00:00.000000000 Z
11
+ date: 2019-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -159,6 +159,7 @@ files:
159
159
  - _includes/post-card.html
160
160
  - _includes/rating.html
161
161
  - _includes/review.html
162
+ - _includes/showcase.html
162
163
  - _includes/tabs.html
163
164
  - _includes/toc.html
164
165
  - _layouts/blog.html
@@ -172,6 +173,7 @@ files:
172
173
  - _posts/2019-07-23-introducing-some-new-layouts-to-bulma-clean-theme.markdown
173
174
  - _sass/_layout.scss
174
175
  - _sass/_main.scss
176
+ - _sass/_showcase.scss
175
177
  - _sass/syntax.scss
176
178
  - assets/css/app.scss
177
179
  - assets/js/app.js