kcc-gem-theme 3.7.3 → 3.7.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/nav-sub.html +7 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2363a02f5e480799e14baccedccb750e11d2c55700298f3da03b9bf048054c84
4
- data.tar.gz: f6834dcc8b4efc2214953ab9bca166b9866dfeff28182160a9d26f8c57616333
3
+ metadata.gz: '079acb9666ad53f314457552d484f61b33640235e8cdcc3c8ab2af4a7f192c4c'
4
+ data.tar.gz: 6a3ffc12bd8ba5c9cd3f9a209e645c7e330e78450a8929b5f1b7ccca5c4ad7dd
5
5
  SHA512:
6
- metadata.gz: 73db72f0500d9e5c6002e77ec67808cf5a30d9fef3c41aa2cf0f58d7f8959b47bb8ed5c26ac4717f062ca600c55a13d9130c5f26cf00d90b6353d8f5d317db60
7
- data.tar.gz: 207bad8c001a9c14c171981fd4a3f838392d6ce6c0fc09caad7885a2f25e3d7dc1939f5cd0b72b05ec2ea2ec825efdb5306aa05d11ad266a146adcdaf9adc23a
6
+ metadata.gz: '04176748ba92e4896c941911b3dd450b60cfb0b37ef601acc1ecd21a57e7082d65118622893aae003b9548bd2bbaae77cb0756934f1a9ee3743045fdc92d428e'
7
+ data.tar.gz: 5c7c871a8140e837bbfdb21054383271c916a4dff2a480edb512b434e0a752ff266c4476854008bdd97f8321ceb176ea2fc5ea2354d21da8a35bc8d67dfae540
@@ -7,8 +7,14 @@
7
7
  {% assign section = page.sub-nav_section | downcase | append: "/" %}
8
8
  {% for nav in site.sub-nav_links %}
9
9
  {% if nav.link_href contains section %}
10
+ {% assign last_char = nav.link_href | slice: -1, 1 %}
11
+ {% if last_char == '/' or nav.link_href contains '#contact' %}
12
+ {% assign link = nav.link_href %}
13
+ {% else %}
14
+ {% assign link = nav.link_href | append: '/' %}
15
+ {% endif %}
10
16
  <li class="nav-item js-sub-nav-item">
11
- <a href="{{ page.baseurl }}{{ nav.link_href }}" class="nav-link sub-nav__nav-link">{{ nav.link_text }}</a>
17
+ <a href="{{ page.baseurl }}{{ link }}" class="nav-link sub-nav__nav-link">{{ nav.link_text }}</a>
12
18
  </li>
13
19
  {% endif %}
14
20
  {% endfor %}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kcc-gem-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.3
4
+ version: 3.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - wdzajicek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-30 00:00:00.000000000 Z
11
+ date: 2024-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll