bulma-clean-theme 1.0.0 → 1.0.2

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: a29d142b9893e9fe88147da4c05d0edda0bc5af50fb76f7fb5d6c87c95dc8722
4
- data.tar.gz: 659074e4c0d12d24e01d6cf9d822b7094396555349c1f6e686da2f4dec6f12af
3
+ metadata.gz: d91b07cd93c887ed50ae17b5308c7a79f2d6ff601c3ae7e144f7d6e10b88f8ce
4
+ data.tar.gz: dcf490b0d190f187ebfb3f2246bee0fee915875fc970411301121e3a35b67b15
5
5
  SHA512:
6
- metadata.gz: 348a8becae8738b62ee1a0da158b2554b6f5617ad0f7b4af1be1524569ad7df968e017cfaaf636d7663ca937e54040c6c387d89b24913659aec747c4bb1947c4
7
- data.tar.gz: 3278a27cf7caa5481f0af58e20ec863475bdef37da43a6abddd45aced06fd9b2f78e76bcf71a189f2e23f8b39a762362590e21105209aaa45b9d05691c7fd8f1
6
+ metadata.gz: 205e38b870f41bb6d279ce27ed2745391e5a120d6e2407ef878a56c868fa308360b5c38c03aec0635714938094e6e440c6f92b605ed259a0a39c5a8481e4d937
7
+ data.tar.gz: 6a54fee3d750c50b24fdb716a78f5f911e2d2c82bd75fb102472c0f29049f34f5b2bd568e9c515003c6f39a11b6961d17cd63833cdefd9610bf4286c0df40ed1
data/README.md CHANGED
@@ -31,13 +31,6 @@ And add this line to your Jekyll site's `_config.yml`:
31
31
  theme: bulma-clean-theme
32
32
  ```
33
33
 
34
- If you are deploying to GitHub pages, then you can also install the [GitHub Pages gem](https://github.com/github/pages-gem) and use `remote_theme` instead of `theme` in your `_config.yml`. **Note that the GitHub Pages gem requires Jekyll version 3.9.**
35
-
36
- ```yaml
37
- # With GitHub Pages Gem
38
- remote_theme: chrisrhymes/bulma-clean-theme
39
- ```
40
-
41
34
  And then execute:
42
35
 
43
36
  $ bundle
@@ -46,13 +39,30 @@ Or install it yourself as:
46
39
 
47
40
  $ gem install bulma-clean-theme
48
41
 
42
+ ### GitHub pages
43
+
44
+ ### v1.0
45
+
46
+ To deploy to GitHub pages using v1.x you will need to use GitHub Actions. Please see the [upgrade guide](https://www.csrhymes.com/bulma-clean-theme/docs/getting-started/upgrading-to-v1/) for more information.
47
+
48
+ ### v0.x
49
+
50
+ If you are deploying to GitHub pages using their default build process, then you can install v0.x of the [GitHub Pages gem](https://github.com/github/pages-gem) and use `remote_theme` instead of `theme` in your `_config.yml`.
51
+
52
+ **Note that the GitHub Pages gem requires Jekyll version 3.9 and version 0.x of Bulma Clean Theme**
53
+
54
+ ```yaml
55
+ # With GitHub Pages Gem
56
+ remote_theme: chrisrhymes/bulma-clean-theme@v0.14.0
57
+ ```
58
+
49
59
  ## Documentation
50
60
 
51
61
  Check out the demo site for the [Documentation](https://www.csrhymes.com/bulma-clean-theme/docs/)
52
62
 
53
63
  ## Upgrading to v1
54
64
 
55
- There are several breaking changes for v1. Please read the [upgrade guide](https://www.csrhymes.com/bulma-clean-theme/docs/upgrading-to-v1/) for more information.
65
+ There are several breaking changes for v1. Please read the [upgrade guide](https://www.csrhymes.com/bulma-clean-theme/docs/getting-started/upgrading-to-v1/) for more information.
56
66
 
57
67
  ## Contributing
58
68
 
@@ -67,4 +77,3 @@ Your theme is set up just like a normal Jekyll site! To test your theme, run `bu
67
77
  ## License
68
78
 
69
79
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
70
-
@@ -1,8 +1,4 @@
1
1
  <div class="">
2
- <script
3
- src="https://cdn.jsdelivr.net/npm/js-cookie@3.0.5/dist/js.cookie.min.js"
4
- ></script>
5
-
6
2
  <div class="container py-6 px-4" id="cookieBanner">
7
3
  <div class="columns">
8
4
  <div class="column is-fullwidth ">
@@ -5,14 +5,23 @@
5
5
  dataLayer.push(arguments);
6
6
  }
7
7
 
8
- // Set default consent to 'denied' as a placeholder
9
- // Determine actual values based on your own requirements
10
- gtag('consent', 'default', {
11
- ad_storage: 'denied',
12
- ad_user_data: 'denied',
13
- ad_personalization: 'denied',
14
- analytics_storage: 'denied',
15
- });
8
+ // Set default consent to 'denied' as a placeholder unless already accepted
9
+ var cookiesAccepted = Cookies.get('cookiesAccepted');
10
+ if (cookiesAccepted === 'true') {
11
+ gtag('consent', 'default', {
12
+ ad_storage: 'granted',
13
+ ad_user_data: 'granted',
14
+ ad_personalization: 'granted',
15
+ analytics_storage: 'granted',
16
+ });
17
+ } else {
18
+ gtag('consent', 'default', {
19
+ ad_storage: 'denied',
20
+ ad_user_data: 'denied',
21
+ ad_personalization: 'denied',
22
+ analytics_storage: 'denied',
23
+ });
24
+ }
16
25
  </script>
17
26
  <!-- Google tag (gtag.js) -->
18
27
  <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
data/_includes/head.html CHANGED
@@ -13,6 +13,9 @@
13
13
  {% endif %}
14
14
  >
15
15
  <script defer src="https://unpkg.com/alpinejs@3.9.0/dist/cdn.min.js"></script>
16
+ <script
17
+ src="https://cdn.jsdelivr.net/npm/js-cookie@3.0.5/dist/js.cookie.min.js"
18
+ ></script>
16
19
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css">
17
20
  {% unless site.hide_share_buttons %}
18
21
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma-social@1/bin/bulma-social.min.css">
@@ -1,5 +1,8 @@
1
1
  <div x-data="{visible: true}" markdown="0">
2
- <div class="notification {{ include.status | default: 'is-warning' }}" x-show.transition.duration.300ms="visible">
2
+ <div
3
+ class="notification {{ include.status | default: 'is-warning' }} my-4"
4
+ x-show.transition.duration.300ms="visible"
5
+ >
3
6
  {% if include.dismissable %}
4
7
  <button class="delete" x-on:click="visible = false"></button>
5
8
  {% endif %}
@@ -14,10 +14,7 @@
14
14
  <html
15
15
  dir="{{ site.direction | default: 'ltr' }}"
16
16
  lang="{{ site.lang | default: 'en' }}"
17
- {% if site.fixed_navbar %}
18
- class="has-navbar-fixed-{{ site.fixed_navbar }}"
19
- {% endif %}
20
- class="theme-light"
17
+ class="{% if site.fixed_navbar %} has-navbar-fixed-{{ site.fixed_navbar }} {% endif %} {% if site.force_theme %} theme-{{ site.force_theme }} {% endif %}"
21
18
  >
22
19
  {% include head.html %}
23
20
  <body>
@@ -128,7 +128,7 @@ For the site to work with Github Pages, all you need to do is update the _config
128
128
 
129
129
  ```yaml
130
130
  #theme: bulma-clean-theme
131
- remote_theme: chrisrhymes/bulma-clean-theme
131
+ remote_theme: chrisrhymes/bulma-clean-theme@v0.14.0
132
132
  ```
133
133
 
134
134
  And then push up your changes to Github as normal.
@@ -42,10 +42,10 @@ gem "bulma-clean-theme", '0.7.2'
42
42
  gem 'github-pages', group: :jekyll_plugins
43
43
  ```
44
44
 
45
- 2. Open the `_config.yml` and comment out or delete the line `theme: minima` and replace it with `remote_theme: chrisrhymes/bulma-clean-theme`, then add `github-pages` to the list of plugins. Update the baseurl to your GitHub repo name, in this example we are using `my-project` as the repo name
45
+ 2. Open the `_config.yml` and comment out or delete the line `theme: minima` and replace it with `remote_theme: chrisrhymes/bulma-clean-theme@v0.14.0`, then add `github-pages` to the list of plugins. Update the baseurl to your GitHub repo name, in this example we are using `my-project` as the repo name
46
46
  ```yaml
47
47
  #theme: minima
48
- remote_theme: chrisrhymes/bulma-clean-theme
48
+ remote_theme: chrisrhymes/bulma-clean-theme@v0.14.0
49
49
  baseurl: "/my-project"
50
50
  plugins:
51
51
  - github-pages
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: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - chrisrhymes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-06 00:00:00.000000000 Z
11
+ date: 2024-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll