bulma-clean-theme 0.6.5 → 0.7

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
  SHA1:
3
- metadata.gz: 4a5505a4156aeaf53333ead0a735d3c61ce881dd
4
- data.tar.gz: 8b5c1e7614ea4cf424b7dedcda300608a4e6828e
3
+ metadata.gz: 8d67bce7574a528187ff83f42a98c92cbddcadfb
4
+ data.tar.gz: 245b335b23f5d019642025070d86f115a5790672
5
5
  SHA512:
6
- metadata.gz: 146339e34ab8f39fa2901f85ae3060c705ef0a99b6575db7adb40d9303376652a861d5a15865fc0e5d5dea629eab5f10ee04f6ba06edd978f62bb431e45a4bdb
7
- data.tar.gz: 4aef8ea9d72f15bc7dc1a5a00a1a019bc8160d9b975ab6a6b31fbc8e734d6b4f0c8b7805733c07f0979a49604c08694904acebddd661dafa90055f42be599433
6
+ metadata.gz: 5709435bc0f60ac0755de293f39027b321f991f7201081a5e275e9eb02007137fdc367b15d016aeb9cfa94f0ce70fc5089274afb4822bb7dc6cb584664a91f28
7
+ data.tar.gz: af4fb3b2db23b8c3e9b0e811438ffd29e4f119719e1e3dc85cf4b90d062440120238eafe248a41e6ca3a091840a73c1a78684e285c86d58adf1fa84cae7273fb
data/README.md CHANGED
@@ -25,6 +25,7 @@ This is a clean and simple Jekyll Theme built with the [Bulma](https://bulma.io/
25
25
  * [Callouts](#callouts)
26
26
  * [Favicon](#favicon)
27
27
  * [Showcases](#showcases)
28
+ * [Sponsors](#sponsors)
28
29
  * [Disqus](#disqus)
29
30
  * [Contributing](#contributing)
30
31
  * [Development](#development)
@@ -33,6 +34,8 @@ This is a clean and simple Jekyll Theme built with the [Bulma](https://bulma.io/
33
34
 
34
35
  ## Installation
35
36
 
37
+ **This theme requires Jekyll 3.8 so it is compatible with GitHub Pages.**
38
+
36
39
  Add this line to your Jekyll site's `Gemfile`:
37
40
 
38
41
  ```ruby
@@ -459,6 +462,52 @@ showcase: showcase_example
459
462
  show_sidebar: false
460
463
  ```
461
464
 
465
+ ### Sponsors
466
+
467
+ #### Sponsor link in navbar
468
+
469
+ 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.
470
+
471
+ ```yaml
472
+ gh_sponsor: chrisrhymes
473
+ ```
474
+
475
+ #### Creating a Sponsors Datafile
476
+
477
+ 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:
478
+
479
+ ```yaml
480
+ - tier_name: Platinum Sponsors
481
+ size: large
482
+ description: |-
483
+ This is the description for the Platinum Tier
484
+ sponsors:
485
+ - name: Dave McDave
486
+ profile: https://github.com/
487
+ - name: Sarah Lee-Cheesecake
488
+ profile: https://github.com/
489
+ - tier_name: Gold Sponsors
490
+ description: |-
491
+ This is the description for the Gold Tier
492
+ sponsors:
493
+ - name: Dave McDave
494
+ profile: https://github.com/
495
+ ```
496
+
497
+ 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.
498
+
499
+ The sponsors require a name, but not a profile link.
500
+
501
+ #### Displaying the Sponsors
502
+
503
+ To display the sponsors on your page, set the sponsors to the filename without the extension in the page's front matter
504
+
505
+ ```yaml
506
+ layout: page
507
+ title: My Sponsors Page
508
+ sponsors: my_sponsors
509
+ ```
510
+
462
511
  ### Disqus
463
512
 
464
513
  Disqus comments are available for posts. To be able to use them, you need to set your disqus shortname in `_config.yml`. Then you need to set your Jekyll environment to production:
@@ -31,6 +31,16 @@
31
31
  {% endfor %}
32
32
  {% endif %}
33
33
  </div>
34
+
35
+ <div class="navbar-end">
36
+ {% if site.gh_sponsor %}
37
+ <a class="navbar-item" href="https://github.com/sponsors/{{ site.gh_sponsor }}">
38
+ <span class="icon gh-sponsor"><i class="fas fa-heart"></i></span>
39
+ <span>Sponsor</span>
40
+ </a>
41
+ {% endif %}
42
+ </div>
43
+
34
44
  </div>
35
45
  </div>
36
46
  </nav>
@@ -0,0 +1,42 @@
1
+ {% if page.sponsors %}
2
+ {% assign tiers=site.data.[page.sponsors] %}
3
+ <div class="columns is-multiline">
4
+ {% for tier in tiers %}
5
+ <div class="column is-12">
6
+ <p class="title is-3 has-text-centered">
7
+ <span>{{ tier.tier_name }}</span>
8
+ </p>
9
+ <p class="subtitle has-text-centered">
10
+ <span class="icon is-large gh-sponsor"><i class="fas fa-heart fa-2x"></i></span>
11
+ </p>
12
+ <div class="columns is-centered">
13
+ <div class="column is-6 content has-text-centered">
14
+ <p>{{ tier.description | markdownify }}</p>
15
+ </div>
16
+ </div>
17
+
18
+ <div class="columns is-multiline is-centered">
19
+ {% for sponsor in tier.sponsors %}
20
+ <div class="column {% if tier.size == 'large' %} is-4-desktop is-6-tablet {% else %} is-3-desktop is-4-tablet {% endif %}">
21
+ <div class="box has-text-centered">
22
+ <p class="title {% if tier.size == 'large' %} is-4 {% elsif tier.size == 'small' %} is-6 {% else %} is-5 {% endif %}">
23
+ {{ sponsor.name }}
24
+ </p>
25
+ <p class="subtitle is-6">
26
+ {% if sponsor.profile %}
27
+ <a href="{{ sponsor.profile }}" class="is-link is-small">View Profile</a>
28
+ {% else %}
29
+ &nbsp;
30
+ {% endif %}
31
+ </p>
32
+ </div>
33
+ </div>
34
+ {% endfor %}
35
+ </div>
36
+ </div>
37
+ <div class="column is-12">
38
+ <hr />
39
+ </div>
40
+ {% endfor %}
41
+ </div>
42
+ {% endif %}
@@ -25,6 +25,7 @@
25
25
  <div class="column {{ content_width }}">
26
26
  {% include tabs.html %}
27
27
  {% include showcase.html %}
28
+ {% include sponsors.html %}
28
29
  {{ content }}
29
30
  </div>
30
31
  {% if site.posts and page.show_sidebar %}
@@ -135,10 +135,10 @@ And then push up your changes to Github as normal.
135
135
 
136
136
  There seems to be an issue where Jekyll doesn't work locally with remote_theme, so when working locally you have to add theme back in, but remember to comment theme out again before pushing back up to GitHub or you will probably get a build warning email.
137
137
 
138
- ## I hope your not feeling overwhelmed
138
+ ## I hope you're not feeling overwhelmed
139
139
 
140
140
  It may seem like there is a lot to do to get started, but really it shouldn't take very long to get a site up and running. All the options are there just in case you want to further customise the theme to be more personal to you, but you can just use the basic minimal settings to get yourself up and running.
141
141
 
142
142
  ## Feedback and Issues
143
143
 
144
- If you have any feedback, ideas or issues with how the theme could be improved, then please create an issue on the theme's GitHub page and I will try and take a look into it as soon as I can. The theme is still quite new and I have quite a few ideas for future enhancements, so I will write a new blog post on this site when any new features become available.
144
+ If you have any feedback, ideas or issues with how the theme could be improved, then please create an issue on the theme's GitHub page and I will try and take a look into it as soon as I can. The theme is still quite new and I have quite a few ideas for future enhancements, so I will write a new blog post on this site when any new features become available.
@@ -11,4 +11,8 @@ $tabs-link-active-border-bottom-color: $primary;
11
11
  @import "layout";
12
12
  @import "syntax";
13
13
  @import "showcase";
14
- @import "../node_modules/bulma-block-list/src/block-list.scss"
14
+ @import "../node_modules/bulma-block-list/src/block-list.scss";
15
+
16
+ .gh-sponsor {
17
+ color: #ea4aaa;
18
+ }
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.6.5
4
+ version: '0.7'
5
5
  platform: ruby
6
6
  authors:
7
7
  - chrisrhymes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-29 00:00:00.000000000 Z
11
+ date: 2020-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -161,6 +161,7 @@ files:
161
161
  - _includes/rating.html
162
162
  - _includes/review.html
163
163
  - _includes/showcase.html
164
+ - _includes/sponsors.html
164
165
  - _includes/subscribe.html
165
166
  - _includes/tabs.html
166
167
  - _includes/toc.html