bulma-clean-theme 0.10.5 → 0.10.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -0
- data/_includes/head.html +1 -1
- data/_includes/header.html +3 -3
- data/_includes/showcase.html +1 -1
- data/_includes/tag.html +3 -0
- data/_layouts/post.html +1 -1
- data/assets/js/app.js +1 -25
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c6a0cc9b71f5dbbadbe42bfa8761dfe20140160bd0f17344d2e1918227ce003
|
4
|
+
data.tar.gz: 2f72832cca44555c479437b4be5d37f922285d4b62e24991f00f3b045f50a038
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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">
|
data/_includes/header.html
CHANGED
@@ -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 %}
|
data/_includes/showcase.html
CHANGED
data/_includes/tag.html
ADDED
data/_layouts/post.html
CHANGED
data/assets/js/app.js
CHANGED
@@ -1,25 +1 @@
|
|
1
|
-
|
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.
|
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-
|
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
|