kcc-gem-theme 3.13.2 → 3.13.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/breadcrumbs.html +30 -14
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa394cf613bdd2658bfa08f4451adf55622d6754cf84e1eda8910afb60470ee3
4
- data.tar.gz: f37d48236703ac217c4e2b6fbf88d42e6a709de55802865d501c4e1860eaabb2
3
+ metadata.gz: fbcb44452e6ca457da62f46495f4cc6f601a1a5fd7726d1ad45e44c1661700bf
4
+ data.tar.gz: 566478f6f86f1d3cd3352629a20326fec8621873fb4d3d515ec27c31e220a9af
5
5
  SHA512:
6
- metadata.gz: 17607f00a5058b5475df1539f16c895ae05ff72fcf7ab71fc473237adc9c84037b06febe061b38687a7c2a40df8ed4e1f33b2c1cdba1b1ea45ae2aa5285fc911
7
- data.tar.gz: 82987db66f02af39af21dee3a7e51bf7364aaf057e0a38e836fb5dc0d1c02082adcb23df4de5e4a82a66f3760276e53c77101dbcdfeb2ea7314ff9c603584b4e
6
+ metadata.gz: 160a0d48ebb2ffe34cfcfba74f05a2b693d5b212e4faf41dd45739df883f71723eeead08774d85e346ef95cf4be8798646757b7988395526c953d648bfd0d3db
7
+ data.tar.gz: 57988fd7e04c4eb2c256c726fea306a3ce8919b8e5cf5d2835f8cb6a8b5600f930a58fd707013aa205a75a748c74c482393c5339bc3577b61934102f85398368
@@ -1,14 +1,19 @@
1
1
  <nav aria-label="Breadcrumb">
2
2
  <ol class="breadcrumb breadcrumbs">
3
- {% if site.core_root == true %}
3
+ {% if site.core_root == true %}
4
+ {% comment %}
5
+ <!-- core_root: true is for the core project (project containing the kcc.edu homepage) -->
6
+ {% endcomment %}
4
7
  {% if page.title != '404' and page.title != 'Settings' %}
5
8
  <li class="breadcrumb-item">
6
- <svg id="home-icon" role="img" class="breadcrumbs--home" height="24px" width="24px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="home-icon-title">
7
- <title lang="en" id="home-icon-title">Home</title>
8
- <path class="breadcrumbs--home--border" d="M0,0h24v24H0V0z"/>
9
- <polygon class="breadcrumbs--home--house" points="14.5,19.5 14.5,13.5 9.5,13.5
10
- 9.5,19.5 5.5,19.5 5.5,11.5 3.3,11.5 12,3.7 20.7,11.5 18.5,11.5 18.5,19.5 "/>
11
- </svg>
9
+ <a href="./" aria-current="page">
10
+ <svg id="home-icon" role="img" class="breadcrumbs--home" height="24px" width="24px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="home-icon-title">
11
+ <title lang="en" id="home-icon-title">Home</title>
12
+ <path class="breadcrumbs--home--border" d="M0,0h24v24H0V0z"/>
13
+ <polygon class="breadcrumbs--home--house" points="14.5,19.5 14.5,13.5 9.5,13.5
14
+ 9.5,19.5 5.5,19.5 5.5,11.5 3.3,11.5 12,3.7 20.7,11.5 18.5,11.5 18.5,19.5 "/>
15
+ </svg>
16
+ </a>
12
17
  </li>
13
18
  {% else if page.title == '404' or page.title == 'Settings' %}
14
19
  <li class="breadcrumb-item">
@@ -21,9 +26,12 @@
21
26
  </svg>
22
27
  </a>
23
28
  </li>
24
- <li class="breadcrumb-item active" aria-current="page">{{ page.title }}</li>
29
+ <li class="breadcrumb-item active"><a href="./" aria-current="page">{{ page.title }}</a></li>
25
30
  {% endif %}
26
31
  {% else %}
32
+ {% comment %}
33
+ <!-- Non-core_root=true is for the other core sites -->
34
+ {% endcomment %}
27
35
  {% if page.url == "/" %}
28
36
  <li class="breadcrumb-item">
29
37
  <a href="../">
@@ -35,9 +43,9 @@
35
43
  </svg>
36
44
  </a>
37
45
  </li>
38
- <li class="breadcrumb-item active" aria-current="page">{{ page.title }}</li>
46
+ <li class="breadcrumb-item active"><a href="./" aria-current="page">{{ page.title }}</a></li>
39
47
  {% else %}
40
- {% assign url_arr = page.url | split: "/" %}
48
+ {% assign url_arr = page.url | split: "/" | where_exp: "item", "item != ''" %}
41
49
  <li class="breadcrumb-item">
42
50
  <a href="../{{ page.baseurl }}">
43
51
  <svg id="home-icon" role="img" class="breadcrumbs--home" height="24px" width="24px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-labelledby="home-icon-title">
@@ -50,13 +58,21 @@
50
58
  </li>
51
59
  <li class="breadcrumb-item"><a href="{{ page.baseurl }}">{{ site.site_name }}</a></li>
52
60
  {% for item in url_arr %}
53
- {% if item != '' %}
61
+ {% assign depth = url_arr.size | minus: forloop.index %}
62
+ {% if depth == 4 %}
63
+ {% assign back_link = '../../../../' %}
64
+ {% elsif depth == 3 %}
65
+ {% assign back_link = '../../../' %}
66
+ {% elsif depth == 2 %}
67
+ {% assign back_link = '../../' %}
68
+ {% elsif depth == 1 %}
69
+ {% assign back_link = '../' %}
70
+ {% endif %}
54
71
  {% if forloop.last %}
55
- <li class="breadcrumb-item active" aria-current="page">{{ page.title }}</li>
72
+ <li class="breadcrumb-item active"><a href="./" aria-current="page">{{ page.title }}</a></li>
56
73
  {% else %}
57
- <li class="breadcrumb-item"><a href="../">{{ item | split: '-' | join: ' ' | capitalize }}</a></li>
74
+ <li class="breadcrumb-item"><a href="{{ back_link }}">{{ item | split: '-' | join: ' ' | capitalize }}</a></li>
58
75
  {% endif %}
59
- {% endif %}
60
76
  {% endfor %}
61
77
  {% endif %}
62
78
  {% endif %}
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.13.2
4
+ version: 3.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - wdzajicek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-18 00:00:00.000000000 Z
11
+ date: 2025-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll