bay_jekyll_theme 1.0.19 → 1.0.21

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: 995b10227651ceb45ec2e0d201b9cfe42ad018a955583b95e9c8a71c60687914
4
- data.tar.gz: 21e26a40ec99579ca66df898f26bc41c571697a6a6e15fe53140180d5cd7cc5e
3
+ metadata.gz: d232430dcbe57d7bd932819337dcee8ae1cad47ae8edfec107d028c011d8c444
4
+ data.tar.gz: a5c9f8dceae0c52994537d671ef07903563b9d40dc438ab1440ef9635b3b47c7
5
5
  SHA512:
6
- metadata.gz: 4648435cf93b6e96355f3e591ad9370208a8d1e9bff07805c4e76a0215bbc7cb83e513cd079e044da4d565c27f875ce223d5f71bf96d3a9194a6271d51a74b68
7
- data.tar.gz: 394787219edbec1c6e804519c3864e417fb61ec60ce970666da59e60c05c2ca8ffe986cd447f984e480423dd323e5942066f04252babe80b2b8e4887000ab594
6
+ metadata.gz: 729462bd151e141b0636ff747f93746ab5e0891f38d4cf43f4b7ede681846d4f5f15c42c93cb05d4634ebe12b7725e9708f3ee3d794338c7e54891202a42a230
7
+ data.tar.gz: 9d5795f8e217c12af797ecc8f4c16d62c3304ce8cf98afa50b98c9310e513d923c9a4092a4d8197aea4ae62899f119ea8c4979cc21ebbfb4ea3b2e3c6f6a5a41
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ### [1.0.21](https://github.com/eliottvincent/bay/compare/v1.0.20...v1.0.21) (2024-05-23)
6
+
7
+ ### Features
8
+
9
+ - Year displayed in footer is now truly dynamic (no need to re-deploy)
10
+
11
+ ### [1.0.20](https://github.com/eliottvincent/bay/compare/v1.0.19...v1.0.20) (2023-10-19)
12
+
13
+ ### Features
14
+
15
+ - Hide "Follow" section when no items in `footer.follow`
16
+
5
17
  ### [1.0.19](https://github.com/eliottvincent/bay/compare/v1.0.18...v1.0.19) (2022-10-19)
6
18
 
7
19
  ### Bug Fixes
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # bay
1
+ # Bay
2
2
 
3
3
  [![Version](https://img.shields.io/gem/v/bay_jekyll_theme)](https://rubygems.org/gems/bay_jekyll_theme)
4
4
  [![Downloads](https://img.shields.io/gem/dt/bay_jekyll_theme)](https://rubygems.org/gems/bay_jekyll_theme)
@@ -13,7 +13,7 @@ Inspired by [dangrover.com](http://dangrover.com/). Current theme used at [eliot
13
13
 
14
14
 
15
15
  The easiest solution is to [fork this repo](https://github.com/eliottvincent/bay/fork).
16
- If you want to start from a clean website, follow the steps bellow:
16
+ If you want to start from a clean website, follow the steps below:
17
17
 
18
18
  Create a new Jekyll website:
19
19
  ```
@@ -27,34 +27,36 @@
27
27
  </div>
28
28
 
29
29
  <div class="footer-col footer-col-2">
30
- <h4>FOLLOW</h4>
30
+ {% if site.footer.follow and site.footer.follow.size > 0 %}
31
+ <h4>FOLLOW</h4>
31
32
 
32
- <div class="social-links follow-links">
33
- {% for follow in site.footer.follow %}
34
- <div class="social-link">
33
+ <div class="social-links follow-links">
34
+ {% for follow in site.footer.follow %}
35
+ <div class="social-link">
35
36
 
36
- {% assign follow_icon_path = "/assets/img/icons/" | append: follow.name | downcase | append: ".png" | absolute_url %}
37
- <img
38
- src="{{ follow_icon_path }}"
39
- alt="{{ follow.name | downcase }}"
40
- />
41
- <a href="{{ follow.link }}">
42
- {% if follow.value and follow.value != "" and follow.value != nil %}
43
- {{ follow.value }}
44
- {% else %}
45
- {{ follow.name }}
46
- {% endif %}
47
- </a>
48
- </div>
37
+ {% assign follow_icon_path = "/assets/img/icons/" | append: follow.name | downcase | append: ".png" | absolute_url %}
38
+ <img
39
+ src="{{ follow_icon_path }}"
40
+ alt="{{ follow.name | downcase }}"
41
+ />
42
+ <a href="{{ follow.link }}">
43
+ {% if follow.value and follow.value != "" and follow.value != nil %}
44
+ {{ follow.value }}
45
+ {% else %}
46
+ {{ follow.name }}
47
+ {% endif %}
48
+ </a>
49
+ </div>
49
50
 
50
- {% endfor %}
51
- </div>
51
+ {% endfor %}
52
+ </div>
53
+ {% endif %}
52
54
  </div>
53
55
 
54
56
  {% if site.footer.show_powered_by == true %}
55
57
  <div class="footer-col footer-col-3 powered-by">
56
58
  <p>
57
- powered by <a href="https://github.com/eliottvincent/bay">Bay</a> | {{ 'now' | date: "%Y" }}
59
+ powered by <a href="https://github.com/eliottvincent/bay">Bay</a> | <span id="year"></span>
58
60
  </p>
59
61
  </div>
60
62
  {% endif %}
data/assets/js/site.js CHANGED
@@ -1,18 +1,25 @@
1
1
  /**
2
2
  * Menu
3
3
  */
4
- $("a.menu-icon").on("click", function(event) {
5
- var w = $(".menu");
4
+ $("a.menu-icon").on("click", function(event) {
5
+ var w = $(".menu");
6
6
 
7
- w.css({
8
- display: w.css("display") === "none"
7
+ w.css({
8
+ display: (w.css("display") === "none")
9
9
  ? "block"
10
10
  : "none"
11
- });
12
- });
11
+ });
12
+ });
13
+
14
+ /**
15
+ * Footer year
16
+ */
17
+ $().ready(function() {
18
+ $("#year").text(new Date().getFullYear());
19
+ });
13
20
 
14
21
  /**
15
- * Wechat widget
22
+ * WeChat widget
16
23
  */
17
24
  function moveWidget(event) {
18
25
  var w = $("#wechat-widget");
@@ -25,6 +32,7 @@ function moveWidget(event) {
25
32
 
26
33
  $("a#wechat-link").on("mouseenter", function(event) {
27
34
  $("#wechat-widget").css({ display: "block" });
35
+
28
36
  moveWidget(event);
29
37
  });
30
38
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bay_jekyll_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.19
4
+ version: 1.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eliott Vincent
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-19 00:00:00.000000000 Z
11
+ date: 2024-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
- rubygems_version: 3.3.11
108
+ rubygems_version: 3.3.26
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: A simple and minimal Jekyll theme..