bulma-clean-theme 0.10.5 → 0.10.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61ce44ce708ac22899498a1a55761fe28063462f30616cb982794fa32f6a5eb3
4
- data.tar.gz: 39ee6467f173ed65617802584e8a3c88187ce64fe38ddbc955c11157b7161bac
3
+ metadata.gz: 5c6a0cc9b71f5dbbadbe42bfa8761dfe20140160bd0f17344d2e1918227ce003
4
+ data.tar.gz: 2f72832cca44555c479437b4be5d37f922285d4b62e24991f00f3b045f50a038
5
5
  SHA512:
6
- metadata.gz: 57aeb00974e6d06908ccddba1f99634aec698c3ed5c071d3bdc7458eaad64e55738a2eca025a952a478a70fca64ebfe058fa1de03dfbc366f5bcb71e13613ccb
7
- data.tar.gz: db1e0da5a6595a08c6829ae9deacf778866574853fdfeb85a8263c279e1cf9832016243a58bb1be04f6551f1c03fe80c4dcaada22edcfcaebd2d04b1da07b087
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)
@@ -309,6 +312,20 @@ message="This notification does not have an icon."
309
312
  icon="false" %}
310
313
  ```
311
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
+
312
329
  ### Google Analytics
313
330
 
314
331
  **New in 0.2**
data/_includes/head.html CHANGED
@@ -6,7 +6,7 @@
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.7.0/dist/alpine.min.js" defer></script>
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">
@@ -1,16 +1,16 @@
1
- <nav class="navbar is-primary {% if site.fixed_navbar %} is-fixed-{{ site.fixed_navbar }} {% endif %}">
1
+ <nav class="navbar is-primary {% if site.fixed_navbar %} is-fixed-{{ site.fixed_navbar }} {% endif %}" x-data="{ openNav: false }">
2
2
  <div class="container">
3
3
  <div class="navbar-brand">
4
4
  <a href="{{ site.baseurl }}/" class="navbar-item">
5
5
  {{ site.title }}
6
6
  </a>
7
- <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">
8
8
  <span aria-hidden="true"></span>
9
9
  <span aria-hidden="true"></span>
10
10
  <span aria-hidden="true"></span>
11
11
  </a>
12
12
  </div>
13
- <div class="navbar-menu" id="navMenu">
13
+ <div class="navbar-menu" id="navMenu" :class="{ 'is-active': openNav }">
14
14
  <div class="navbar-start">
15
15
  <a href="{{ site.baseurl }}/" class="navbar-item {% if page.url == "/" %}is-active{% endif %}">Home</a>
16
16
  {% if site.data.navigation %}
@@ -47,7 +47,7 @@
47
47
  {% assign tags = item.tags | split: "," %}
48
48
  <div class="tags is-centered">
49
49
  {% for tag in tags %}
50
- <div class="tag is-dark">{{ tag }}</div>
50
+ {% include tag.html tag=tag style="is-dark" %}
51
51
  {% endfor %}
52
52
  </div>
53
53
  {% endif %}
@@ -0,0 +1,3 @@
1
+ <span class="tag {% if include.style %} {{ include.style }} {% else %} is-primary {% endif %}">
2
+ {{ include.tag }}
3
+ </span>
data/_layouts/post.html CHANGED
@@ -11,7 +11,7 @@ layout: default
11
11
 
12
12
  <div class="tags">
13
13
  {% for tag in page.tags %}
14
- <span class="tag is-primary">{{ tag }}</span>
14
+ {% include tag.html tag=tag %}
15
15
  {% endfor %}
16
16
  </div>
17
17
 
data/assets/js/app.js CHANGED
@@ -1,25 +1 @@
1
- document.addEventListener('DOMContentLoaded', () => {
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
+ //
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.5
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: 2021-01-17 00:00:00.000000000 Z
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