kcc-gem-theme 3.7.3 → 3.7.5

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: 2363a02f5e480799e14baccedccb750e11d2c55700298f3da03b9bf048054c84
4
- data.tar.gz: f6834dcc8b4efc2214953ab9bca166b9866dfeff28182160a9d26f8c57616333
3
+ metadata.gz: 1c4a29fe56a1b6f0304f3e62f4486f6ffd11cf7407b03162989e4095a2882319
4
+ data.tar.gz: 1246e87eb1c98f9c04dbe72ef702d653e6a356995955074aa933f21999f145c7
5
5
  SHA512:
6
- metadata.gz: 73db72f0500d9e5c6002e77ec67808cf5a30d9fef3c41aa2cf0f58d7f8959b47bb8ed5c26ac4717f062ca600c55a13d9130c5f26cf00d90b6353d8f5d317db60
7
- data.tar.gz: 207bad8c001a9c14c171981fd4a3f838392d6ce6c0fc09caad7885a2f25e3d7dc1939f5cd0b72b05ec2ea2ec825efdb5306aa05d11ad266a146adcdaf9adc23a
6
+ metadata.gz: 58e07bef291c0c4d932f11550aa241cb43b5cc7666c3cfd33eb7337733c7d3d6b2d9a275ee53454cbc37978552a755b1fd0980df8222f934bf267413653dc313
7
+ data.tar.gz: 047d713c1db2946d2204cda017e48f2a743d76895fd4b13be95f89e5690791ed168e5ed133b33cb6480e3e3df2b75e63cbd36bbee4ee070a83764671d61bf201
@@ -4,7 +4,11 @@
4
4
  <!-- Meta -->
5
5
  <meta charset="utf-8">
6
6
  <meta http-equiv="x-ua-compatible" content="ie=edge">
7
+ {% if site.subsection_title %}
8
+ <title>{{page.title}} - {{site.subsection_title}}</title>
9
+ {% else %}
7
10
  <title>{{page.title}} - {{site.title}}</title>
11
+ {% endif %}
8
12
  <meta name="description" content="{{ page.description | replace: '"', '&quot;' }}">
9
13
  {%- if site.canonical_baseurl %}
10
14
  <link rel="canonical" href="{% if site.canonical_baseurl == 'https://www.kcc.edu' and page.url == '/' %}{{ site.canonical_baseurl }}{% else %}{{ site.canonical_baseurl }}{{ page.url }}{% endif %}">
@@ -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.5
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